var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var ba,da,aaa,ha,ia,ka,oa,pa,qa,ra,sa,ua,baa,caa,va,wa,daa,xa,ya,za,Aa,Ba,Da,Ea,Ia,Ga,La,Ma,gaa,haa,Ua,Va,Wa,iaa,jaa,Ya,kaa,$a,ab,laa,maa,cb,lb,naa,sb,tb,oaa,yb,vb,paa,wb,qaa,raa,saa,Hb,Jb,Kb,Ob,Qb,Rb,Zb,ac,dc,ec,hc,ic,vaa,jc,lc,mc,vc,wc,yc,Dc,Jc,Kc,Oc,Mc,zaa,Caa,Daa,Eaa,Sc,Tc,Vc,Uc,Yc,ad,Faa,Gaa,$c,Haa,gd,hd,id,ld,nd,od,Jaa,pd,qd,ud,vd,wd,xd,yd,zd,Ad,Bd,Dd,Fd,Gd,Id,Ld,Md,Laa,Nd,Od,Pd,Qd,Rd,Sd,Zd,be,ee,ie,je,oe,pe,ue,qe,we,ze,ye,xe,Qaa,ge,Le,Je,Ke,Ne,Me,fe,Oe,Pe,Saa,Te,Ve,Se,Xe,Ye,Ze,$e,af,bf,cf, df,Taa,lf,gf,zf,Uaa,Df,Ff,Hf,Vaa,If,Kf,Lf,Mf,Nf,Of,Pf,Qf,Sf,Rf,Tf,Uf,Yaa,$aa,aba,cba,Zf,$f,bg,dg,eg,dba,fg,eba,gg,fba,hg,kg,qg,rg,ug,gba,xg,wg,yg,hba,Gg,Hg,Ig,iba,Jg,Kg,Lg,Mg,Ng,Og,Pg,jba,Qg,Rg,Sg,kba,lba,Tg,Vg,Ug,Xg,Yg,ah,Zg,nba,$g,bh,ch,eh,dh,oba,fh,qba,pba,rba,ih,sba,kh,lh,mh,jh,nh,tba,oh,uba,vba,rh,xba,sh,th,uh,yba,wh,yh,Bh,Hh,Jh,Gh,Fh,Kh,zba,Lh,Mh,Nh,Oh,Bba,Th,Uh,Vh,Wh,Dba,Xh,Yh,Zh,$h,ai,Eba,ci,di,ei,fi,gi,hi,ji,ki,li,mi,ni,ii,oi,pi,qi,Fba,ri,si,Gba,ti,ui,Hba,wi,Iba,xi,yi,zi,Jba,Ai,Bi,Di,Fi, Li,Mi,Ni,Oi,Ci,Ei,Lba,Pi,Qi,Si,Ri,Mba,Nba,Oba,Ti,Ui,Vi,Wi,Sba,Tba,Uba,Xi,Zi,Vba,Wba,Xba,aj,bj,Yba,cj,Zba,$ba,dj,ej,fj,aca,hj,ij,jj,kj,lj,mj,nj,oj,pj,qj,rj,bca,cca,sj,dca,uj,tj,xj,yj,wj,eca,ica,hca,Aj,jca,kca,lca,nca,mca,oca,Bj,Dj,Fj,Gj,Hj,qca,Jj,Kj,rca,sca,Lj,Mj,Nj,Oj,tca,Pj,Qj,vca,Rj,wca,Sj,Uj,Tj,Vj,Wj,Yj,yca,Zj,xca,ak,zca,bk,Aca,Bca,dk,gk,hk,ik,jk,fk,mk,nk,kk,Cca,Eca,Fca,pk,qk,rk,sk,Gca,tk,uk,vk,wk,xk,yk,zk,Ak,Dk,Ck,Ica,Jca,Ek,Gk,Bk,Fk,Hca,Hk,Ik,Lca,Mca,Nca,Oca,Mk,Nk,Ok,Pca,Jk,Pk,Qk,Kca,Qca,Rca, Sca,Tk,Rk,Uk,Wk,Xca,Tca,$k,al,bl,cl,dl,el,gj,Yca,fl,gl,Zca,$ca,ada,bda,cda,il,jl,kl,ll,ml,nl,fda,gda,ol,pl,rl,tl,ida,ul,vl,wl,xl,zl,Bl,jda,yl,Hl,Il,El,Ll,Kl,lda,Cl,Al,Ol,Pl,Ql,Sl,Ul,nda,Vl,Wl,oda,am,cm,em,fm,hm,im,jm,lm,pda,qda,nm,pm,qm,mm,om,dm,km,sda,tm,rm,sm,vm,rda,um,zm,Cm,Bm,Hm,Im,Km,vda,Jm,Mm,Om,Nm,tda,Rm,Tm,yda,Vm,Wm,Ym,Zm,$m,an,gn,zda,jn,kn,Bda,ln,mn,Gda,Cda,tn,Lda,un,vn,Nda,yn,zn,An,Bn,Oda,En,Fn,Gn,Hn,Jn,Kn,Ln,Mn,On,Pn,Sn,Tn,Un,Rda,Sda,Wn,Xn,ao,Yn,bo,eo,fo,co,Tda,io,M,lo,vo,uo,Wda,Xda,xo, Ao,Bo,Co,Do,Zda,$da,Ko,Lo,Mo,aea,So,To,Uo,Wo,Yo,Vo,ap,dp,cp,bp,fp,lp,kp,bea,eea,dea,wp,xp,yp,zp,Ap,Bp,Cp,Gp,Ep,Hp,Ip,Jp,Mp,Lp,hea,Op,iea,Sp,Rp,kea,Tp,Up,lea,Yp,mea,nea,Wp,Zp,oea,dq,eq,fq,hq,pea,mq,lq,gq,nq,oq,qea,rea,vq,sea,tea,wq,yq,zq,xq,Aq,Bq,Cq,Dq,Eq,Fq,Iq,Jq,Kq,Lq,Pq,Mq,vea,Rq,Sq,wea,yea,xea,Nq,Tq,zea,Qq,uea,Oq,Vq,Aea,Wq,Uq,Bea,Xq,Yq,Zq,$q,br,cr,er,fr,gr,ir,jr,kr,mr,or,pr,ar,qr,sr,tr,Cea,wr,xr,yr,zr,Br,Ar,Dea,Eea,Fea,Gea,Cr,Dr,Fr,Hr,Gr,Iea,Hea,Ir,Kr,Jr,Mr,Nr,Jea,Kea,Qr,Sr,Rr,Lea,Zr,$r,as,Oea, cs,es,gs,fs,is,js,ks,ms,ls,Qea,ps,qs,rs,ts,ys,zs,ws,Tea,Rea,As,Ds,Es,Vea,Bs,Cs,Fs,Gs,Is,Js,Ms,Ks,Os,Ns,Ps,Wea,Rs,Ss,Us,Yea,Zs,$s,at,ct,Zea,et,gt,ht,lt,mt,$ea,it,afa,vt,Ft,Dt,bfa,Jt,It,Lt,Ht,Kt,Mt,Ot,Pt,Rt,St,Qt,Tt,Ut,Vt,Yt,Wt,dfa,Zt,$t,au,bu,cu,efa,Xt,du,eu,fu,gu,hu,iu,ju,ku,lu,mu,nu,ou,ffa,pu,gfa,qu,ru,uu,wu,hfa,xu,Bu,zu,vu,Cu,yu,Au,Du,Eu,Fu,ifa,Hu,Iu,Ou,jfa,Ku,Qu,Su,Vu,Uu,Mu,Ru,Pu,kfa,Wu,Yu,Zu,lfa,$u,av,Ju,Lu,Nu,Tu,bv,cv,dv,ev,fv,gv,hv,iv,jv,kv,lv,mv,nv,ov,pv,rv,uv,tv,vv,wv,xv,zv,Av,Bv,Dv,Ev,Gv, qfa,Hv,Iv,Jv,Kv,Mv,Nv,Ov,Pv,Lv,sfa,Qv,Rv,Sv,Tv,Uv,tfa,Vv,Wv,Xv,ufa,vfa,wfa,Zv,$v,xfa,bw,yfa,aw,cw,ew,fw,gw,iw,jw,kw,nw,ow,pw,lw,uw,vw,ww,xw,yw,zw,Aw,rw,Bw,Cw,Dw,Fw,Gw,Hw,Jw,Lw,Mw,Nw,Ow,Pw,Qw,zfa,Rw,Afa,Ww,Xw,Bfa,Yw,Dfa,Efa,Ffa,Gfa,ax,Hfa,Ifa,Jfa,Kfa,bx,Lfa,Mfa,cx,Nfa,Uw,Zw,$w,Cfa,dx,Ofa,Pfa,gx,ix,hx,Qfa,ex,fx,Rfa,Sfa,jx,kx,lx,Tfa,Ufa,Vfa,Wfa,mx,nx,ox,px,qx,rx,sx,tx,Ax,wx,Xfa,Cx,xx,yx,vx,zx,ux,Bx,Gx,Fx,Ex,Ix,Jx,Zfa,$fa,Lx,Mx,aga,Px,Vx,Tx,Yx,Qx,Zx,Nx,ay,Rx,Ox,Xx,by,cy,dy,fy,ey,gy,iy,jy,ky,ny,oy,py, my,ry,uy,vy,gga,sy,jga,ty,Ey,Gy,Fy,zy,hga,kga,Hy,Iy,Ay,ega,Jy,Ky,Ly,My,lga,Ny,Oy,Py,Qy,Ry,Sy,cz,ez,dz,fz,gz,kz,mz,nz,oz,pz,rz,sz,vz,lz,iz,hz,jz,wz,xz,yz,zz,uz,qz,tz,Az,Bz,Cz,Dz,Fz,Ez,Gz,oga,Sx,Cy,By,Iz,Ux,Jz,Kz,Kx,Hz,Lz,Mz,Oz,Nz,qga,Pz,Qz,Rz,Sz,Tz,Vz,Uz,Wz,rga,Xz,Yz,Zz,$z,aA,sga,tga,xga,yga,uga,vga,wga,bA,cA,zga,Aga,Bga,eA,fA,gA,Cga,hA,jA,kA,lA,mA,nA,pA,qA,rA,sA,tA,Dga,vA,wA,uA,yA,xA,zA,AA,Ega,BA,DA,Gga,EA,Hga,Iga,FA,GA,Jga,Kga,Lga,HA,Mga,LA,IA,OA,Nga,Oga,PA,Pga,QA,RA,Qga,SA,TA,Rga,Sga,Tga,MA,Uga, UA,VA,WA,XA,YA,ZA,Xga,Wga,aB,bB,$A,cB,dB,Yga,fB,gB,hB,jB,kB,eB,lB,iB,nB,oB,qB,pB,rB,sB,uB,vB,wB,xB,DB,zB,GB,AB,JB,HB,KB,CB,cha,LB,yB,NB,dha,eha,fha,SB,TB,VB,WB,XB,YB,ZB,$B,UB,cC,gha,eC,fC,gC,OB,hha,iC,jC,kC,lC,mC,nC,oC,pC,rC,sC,qC,lha,mha,vC,uC,kha,jha,tC,wC,mga,xC,nha,yC,oha,pha,AC,CC,BC,zC,R,EC,FC,GC,HC,IC,gD,hD,kD,lD,TC,YC,JC,bD,aD,eD,oD,qD,sD,wD,QC,xD,PC,yD,$C,xha,Aha,Bha,Cha,GD,HD,ID,JD,Dha,CD,KD,LD,BD,yha,ND,DD,ED,zha,OD,FD,Eha,Fha,Gha,PD,QD,Hha,RD,Iha,SD,Jha,WD,TD,VD,UD,Kha,$x,cga,XD,$D,Mha, Nha,Oha,eE,Pha,dE,fE,gE,hE,iE,jE,kE,lE,mE,Qha,nE,qE,Sha,rE,sE,tE,vE,xE,zE,BE,Uha,Wha,Xha,Yha,AE,DE,FE,$ha,GE,JE,aia,IE,ME,NE,HE,KE,oE,Rha,yE,Tha,bia,cia,pE,EE,wE,uE,LE,dia,OE,eia,QE,PE,SE,TE,RE,UE,XE,fia,gia,YE,ZE,eF,jia,kia,cF,hia,kF,tia,uia,pF,qF,rF,via,uF,vF,wF,xF,yF,zF,AF,S,sF,BF,wia,CF,DF,EF,FF,xia,GF,HF,JF,zia,KF,LF,Aia,yia,Bia,MF,NF,Cia,OF,PF,kma,lma,QF,RF,mma,qma,SF,nma,pma,oma,TF,rma,UF,sma,tma,uma,YF,ZF,bG,aG,cG,dG,eG,fG,wma,xma,yma,hG,iG,lG,kG,zma,nG,oG,jG,pG,qG,Ama,uG,yG,zG,BG,Dma,HG, JG,EG,ZG,Cma,Ema,$G,bH,cH,aH,dH,Fma,DG,IG,hH,Gma,Hma,Ima,Kma,iH,jH,Jma,lH,mH,nH,pH,qH,GG,vG,sH,xG,wG,uH,gH,Lma,zH,AH,BH,CH,DH,AG,FH,EH,fH,eH,GH,rH,CG,FG,Mma,tG,JH,sG,gG,Nma,KH,LH,MH,Oma,NH,Pma,OH,QH,Qma,Rma,Tma,Sma,RH,SH,Uma,TH,UH,VH,WH,XH,YH,ZH,$H,aI,bI,Vma,cI,dI,eI,fI,hI,Yma,gI,Zma,Wma,iI,Xma,jI,$ma,kI,lI,mI,nI,oI,pI,qI,sI,rI,tI,vI,wI,bna,xI,DI,FI,zI,CI,II,BI,KI,EI,LI,HI,GI,NI,AI,yI,OI,QI,PI,RI,SI,UI,WI,YI,$I,aJ,ZI,XI,bJ,dJ,eJ,fJ,gJ,hJ,iJ,jJ,kJ,lJ,mJ,nJ,oJ,pJ,qJ,rJ,sJ,tJ,uJ,vJ,wJ,xJ,yJ,AJ,BJ,CJ, DJ,EJ,FJ,GJ,HJ,JJ,KJ,cna,LJ,fna,dna,ena,gna,MJ,NJ,PJ,QJ,OJ,RJ,SJ,hna,ina,TJ,UJ,VJ,WJ,XJ,YJ,ZJ,$J,aK,bK,cK,dK,eK,fK,gK,hK,iK,jK,kK,lK,mK,nK,oK,pK,qK,rK,sK,tK,uK,vK,wK,xK,yK,zK,AK,BK,CK,DK,EK,FK,GK,HK,jna,lna,mna,kna,JK,IK,KK,LK,MK,NK,OK,PK,QK,UK,VK,WK,XK,YK,ZK,$K,nna,cL,dL,aL,gL,eL,fL,ona,hL,pna,iL,jL,qna,kL,lL,mL,nL,pL,rna,tna,una,sL,vna,rL,qL,sna,tL,vL,uL,wL,yL,xL,zL,wna,AL,DL,EL,FL,GL,JL,yna,LL,NL,OL,PL,QL,RL,TL,zna,VL,UL,Ana,Bna,WL,XL,YL,Cna,$L,ZL,Dna,aM,bM,Hna,Gna,dM,eM,cM,fM,gM,hM,Jna,iM,jM, Kna,kM,lM,mM,nM,Lna,oM,Mna,pM,qM,rM,Nna,sM,uM,wM,yM,AM,CM,DM,HM,Ona,Pna,EM,FM,GM,IM,LM,JM,NM,UM,Qna,QM,RM,VM,OM,Rna,XM,Sna,WM,YM,SM,cJ,Tna,ZM,aN,$M,Una,bN,Wna,Xna,SL,oL,Vna,gN,hN,Zna,iN,jN,kN,$na,aoa,boa,lN,nN,doa,oN,W,eoa,rN,foa,goa,uN,xN,yN,zN,AN,ioa,joa,koa,loa,moa,noa,ooa,FN,poa,GN,qoa,roa,soa,toa,uoa,KN,LN,MN,voa,NN,ON,PN,QN,RN,SN,UN,VN,WN,XN,YN,woa,ZN,$N,xoa,aO,yoa,zoa,Aoa,Coa,Boa,Doa,Eoa,Foa,bO,Goa,cO,Hoa,eO,Joa,Ioa,fO,gO,Noa,Koa,Moa,Loa,hO,iO,Ooa,jO,kO,Poa,Qoa,Roa,Soa,lO,Toa,Uoa,mO,nO,pO, qO,rO,Voa,tO,vO,Yoa,xO,yO,zO,Zoa,$oa,apa,CO,bpa,cpa,dpa,epa,DO,BO,fpa,FO,gpa,GO,HO,IO,LO,MO,NO,OO,PO,hpa,QO,ipa,RO,SO,TO,UO,VO,WO,XO,jpa,YO,ZO,$O,aP,bP,kpa,mpa,lpa,npa,cP,opa,ppa,dP,qpa,eP,fP,gP,rpa,spa,tpa,hP,jP,vpa,kP,lP,mP,nP,xpa,wpa,oP,pP,qP,rP,sP,tP,zpa,ypa,uP,vP,wO,wP,Bpa,yP,Dpa,Fpa,AP,Gpa,BP,zP,CP,DP,FP,Ipa,NP,Jpa,OP,bL,MP,PP,Mpa,Npa,Opa,Ppa,Hpa,Qpa,EP,Spa,XP,RP,JP,YP,SP,HP,Tpa,Rpa,GP,QP,UP,ZP,KP,LP,WP,VP,Vpa,$P,Xpa,Wpa,aQ,X,aqa,bQ,bqa,Ypa,cqa,cQ,fqa,dqa,kqa,hqa,gqa,nqa,mqa,oqa,rqa,qqa,uqa, wqa,xqa,Bqa,mQ,yqa,Dqa,Cqa,nQ,oF,Eqa,pQ,lF,tQ,sia,uQ,sO,vQ,wQ,dQ,xQ,Gqa,lQ,eQ,Hqa,yQ,zQ,hQ,Iqa,jqa,fQ,gQ,kQ,Jqa,Kqa,AQ,BQ,oQ,jQ,iQ,zqa,pqa,sqa,CQ,DQ,Lqa,EQ,FQ,GQ,HQ,IQ,JQ,KQ,LQ,MQ,tF,Nqa,Mqa,Oqa,vqa,iqa,eqa,$pa,Zpa,lqa,Aqa,tqa,NQ,Pqa,OQ,zJ,IP,Kpa,qQ,PQ,QQ,Rqa,Sqa,RQ,Tqa,SQ,TQ,UQ,MM,TM,Uqa,VQ,Vqa,Wqa,Woa,XQ,YQ,Yqa,Xqa,ZQ,$Q,aR,bR,Xoa,oO,$qa,ara,dR,nF,eR,TP,WQ,cra,dra,era,fR,gR,fra,gra,hra,ira,hR,iR,sQ,rQ,jra,jR,kR,kra,lR,mR,lra,mra,nR,oR,pR,qR,rR,nra,sR,ora,tR,uR,vR,wR,yR,zR,AR,CR,pra,BR,qra,rra,DR, tra,sra,ER,FR,ura,GR,vra,wra,HR,xra,yra,zra,IR,JR,KR,LR,MR,NR,Ara,OR,PR,Bra,QR,xR,RR,SR,TR,Cra,UR,Dra,VR,WR,YR,ZR,$R,Era,Fra,Hra,Jra,Gra,aS,Kra,Lra,Mra,bS,cS,dS,Fqa,Nra,eS,Ora,fS,Ira,Pra,Qra,Rra,Tra,gS,hS,Ura,iS,Vra,Wra,jS,Xra,kS,lS,mS,nS,oS,Yra,pS,Zra,$ra,asa,bsa,rS,csa,dsa,esa,fsa,hsa,gsa,isa,tS,jsa,ksa,mF,lsa,zS,msa,nsa,BS,osa,CS,psa,qsa,rsa,DS,ES,FS,GS,tsa,HS,KS,usa,vsa,LS,NS,dF,wsa,zsa,ysa,xsa,Asa,Csa,MS,OS,PS,QS,RS,SS,TS,Dsa,Esa,VS,Fsa,Hsa,Isa,Gsa,Jsa,WS,XS,Msa,Lsa,qq,tq,Osa,Nsa,Psa,Qsa,Rsa, Ssa,Tsa,Vsa,ZS,Usa,Wsa,$S,Xsa,Zsa,$sa,ata,cT,dT,bta,eta,fT,fta,aT,dta,gta,ita,bT,hta,cta,kta,iT,hT,jT,Y,PM,lta,mta,nta,ota,nT,mT,oT,tT,Yna,ET,Sra,$E,Bta,RT,Cta,tta,UT,Fta,Gta,VT,Dta,Eta,WT,XT,ZT,Lta,Nta,aU,Sta,dU,Uta,Rta,Vta,Wta,cU,Tta,fU,gU,hU,iU,pta,jU,Xta,lU,Yta,kU,nU,Zta,qU,rU,wU,aua,bua,yU,xU,zU,cua,dua,BU,AU,eua,DU,EU,gua,fua,HU,iua,JU,FU,jua,kua,lua,hua,KU,NU,mua,MU,OU,QU,PU,oua,pua,VU,qua,rua,YU,sua,vua,tua,bV,cV,wua,fV,gV,iV,kV,xua,yua,nV,Aua,mV,zua,Bua,Cua,qV,Dua,Eua,tV,uV,Gua,Fua,vV,wV, Hua,Iua,zV,Kua,Jua,AV,BV,CV,Lua,DV,EV,FV,GV,Mua,HV,Nua,IV,Pua,Oua,Rua,Qua,NV,LV,AW,MV,Sua,Tua,Uua,BW,CW,DW,EW,Vua,HW,Wua,JW,KW,LW,Xua,NW,OW,PW,QW,Yua,ava,RW,Zua,$ua,SW,eva,fva,TW,hva,gva,iva,jva,kva,WW,YW,ZW,$W,lva,mva,nva,ova,qva,rva,sva,dX,hX,uva,vva,fX,bX,eX,jX,yva,kX,gX,pva,xva,iX,tva,wva,zva,Ava,lX,mX,nX,oX,Cva,rX,sX,tX,uX,vX,wX,Dva,xX,zX,yX,AX,BX,Eva,CX,Fva,Hva,Gva,DX,EX,Iva,FX,GX,Jva,HX,Kva,IX,Lva,JX,KX,OX,NX,Mva,MX,RX,Nva,Ova,SX,TX,VX,Pva,WU,Tva,rV,Qva,QX,Sva,sV,Rva,Uva,Yva,Xva,ZX,Zva,$X, $va,aY,awa,bwa,cwa,dwa,eY,iwa,lwa,jwa,fwa,hY,dY,ewa,kwa,lY,nwa,mwa,mY,qwa,swa,twa,rwa,pY,uwa,rY,Bwa,uY,Awa,zwa,vY,qY,wY,NT,Cwa,tY,Vha,Fwa,Dwa,sY,Ewa,xwa,vwa,Zha,yY,Kwa,AY,Mwa,Nwa,Iwa,CY,Owa,DY,Gwa,GY,Jwa,Pwa,EY,BY,Qwa,OT,Rwa,zY,Twa,KY,IY,LY,JY,MY,OY,PY,QY,NY,Uwa,RY,SY,Wwa,XY,Ywa,Zwa,uI,$wa,axa,$Y,ZY,YY,bxa,cxa,yta,zta,dxa,exa,cZ,dZ,eZ,fZ,gZ,fxa,gxa,hxa,jxa,ixa,hZ,kxa,mxa,lxa,oxa,jZ,txa,pxa,uxa,vxa,rxa,wxa,sxa,kZ,Axa,yxa,zxa,Fxa,Cxa,Gxa,Hxa,Ixa,iZ,Bxa,Exa,xxa,Jxa,mZ,Kxa,qxa,Lxa,nZ,oZ,Mxa,Nxa,Pxa,Qxa, pZ,Oxa,qZ,rZ,sZ,uZ,Sxa,Uxa,Vxa,Xxa,Wxa,vZ,Txa,xZ,wZ,Yxa,tZ,Zxa,yZ,BZ,$xa,bya,aya,AZ,cya,dya,fya,eya,gya,CZ,zZ,hya,iya,DZ,EZ,kya,lya,mya,jya,nya,oya,qya,sya,tya,pya,vya,wya,rya,HZ,xya,yya,zya,Aya,IZ,JZ,LZ,MZ,NZ,Cya,OZ,Dya,Eya,Fya,PZ,Gya,Hya,SZ,Iya,Jya,Lya,Kya,Mya,TZ,UZ,Nya,VZ,WZ,XZ,Rya,ZZ,YZ,Sya,b_,Qya,Uya,Pya,a_,Vya,Tya,Xya,$Z,c_,Yya,Zya,$ya,Zqa,aza,bza,Wya,Bya,RZ,dza,e_,f_,eza,fza,h_,hza,k_,j_,iza,jza,i_,g_,gza,n_,m_,o_,l_,kza,q_,oza,s_,u_,cY,QT,qza,mza,t_,v_,nza,rza,sza,uza,p_,vza,wza,tza,r_,pza, lza,w_,x_,y_,yza,Aza,zza,Bza,Dza,Cza,z_,A_,Eza,B_,C_,D_,E_,F_,G_,Fza,Gza,Iza,Jza,Kza,Lza,Mza,Nza,Oza,H_,Pza,Qza,I_,J_,K_,L_,M_,N_,Rza,O_,Sza,Tza,Uza,Vza,Wza,Yza,P_,Zza,Q_,$za,bAa,aAa,cAa,iAa,dAa,gAa,hAa,eAa,jAa,fAa,lAa,R_,nAa,W_,oAa,pAa,$_,MI,a0,gT,vAa,wwa,yAa,b0,Z_,zAa,AAa,h0,d0,oY,wAa,j0,CAa,HT,bZ,gY,fY,k0,n0,jta,g0,o0,T_,BAa,tAa,X_,l0,q0,JAa,iY,KAa,jY,pwa,p0,xY,FY,c0,DAa,MAa,LAa,NAa,r0,hwa,sta,OAa,HAa,rAa,sAa,PAa,s0,e0,U_,Y_,kY,uAa,V_,t0,eT,QAa,qAa,f0,RAa,gwa,m0,IAa,xAa,v0,cBa,YAa,bF,XAa,fBa,gBa, y0,z0,MT,iBa,hBa,A0,Ata,u0,PT,E0,kBa,F0,H0,aBa,bBa,N0,oBa,M0,w0,R0,dBa,S0,lBa,vT,pBa,qBa,J0,K0,I0,V0,vBa,B0,wBa,xBa,yBa,Lwa,ABa,W0,Q0,owa,C0,HY,X0,Y0,BBa,L0,jBa,U0,rBa,DBa,vta,uta,kT,FBa,P0,$0,HBa,D0,FT,a1,IBa,JBa,b1,LBa,$Aa,T0,MBa,ZAa,c1,d1,Xwa,NBa,QBa,SBa,h1,i1,aa,fa,ea,eaa,Ha,Pa,faa;ba=function(a){return function(){return aa[a].apply(this,arguments)}}; g.ca=function(a,b){return aa[a]=b}; da=function(a){var b=0;return function(){return bb?null:"string"===typeof a?a.charAt(b):a[b]}; cb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; oaa=function(a){for(var b={},c=0,d=0;d>>1),n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0b?1:ac&&g.ub(a,-(c+1),0,b)}; g.Db=function(a,b,c){var d={};(0,g.Cb)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; raa=function(a){for(var b=[],c=0;c")&&(a=a.replace(qc,">"));-1!=a.indexOf('"')&&(a=a.replace(rc,"""));-1!=a.indexOf("'")&&(a=a.replace(sc,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(tc,"�"))}return a}; wc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}; g.zc=function(a,b){for(var c=0,d=xc(String(a)).split("."),e=xc(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&hb?1:0}; g.Bc=function(a,b){this.C=b===Ac?a:""}; g.Cc=function(a){return a instanceof g.Bc&&a.constructor===g.Bc?a.C:"type_error:SafeUrl"}; Dc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(xaa);return b&&yaa.test(b[1])?new g.Bc(a,Ac):null}; g.Gc=function(a){a instanceof g.Bc||(a="object"==typeof a&&a.xj?a.Ig():String(a),a=Ec.test(a)?new g.Bc(a,Ac):Dc(a));return a||Fc}; g.Hc=function(a,b){if(a instanceof g.Bc)return a;a="object"==typeof a&&a.xj?a.Ig():String(a);if(b&&/^data:/i.test(a)){var c=Dc(a)||Fc;if(c.Ig()==a)return c}Ec.test(a)||(a="about:invalid#zClosurez");return new g.Bc(a,Ac)}; Jc=function(a,b){this.u=b===Ic?a:""}; Kc=function(a){return a instanceof Jc&&a.constructor===Jc?a.u:"type_error:SafeStyle"}; Oc=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?g.Lc(d,Mc).join(" "):Mc(d),b+=c+":"+d+";")}return b?new Jc(b,Ic):Nc}; Mc=function(a){if(a instanceof g.Bc)return'url("'+g.Cc(a).replace(/>>0;return b}; g.md=function(a){var b=Number(a);return 0==b&&g.nc(a)?NaN:b}; nd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; od=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Jaa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; pd=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l}; qd=function(a){return a?decodeURI(a):a}; g.sd=function(a,b){return b.match(rd)[a]||null}; g.td=function(a){return qd(g.sd(3,a))}; ud=function(a){a=a.match(rd);return pd(a[1],null,a[3],a[4])}; vd=function(a){a=a.match(rd);return pd(null,null,null,null,a[5],a[6],a[7])}; wd=function(a,b){if(a)for(var c=a.split("&"),d=0;db&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]}; yd=function(a,b){return b?a?a+"&"+b:b:a}; zd=function(a,b){if(!b)return a;var c=xd(a);c[1]=yd(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]}; Ad=function(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return id(a.substr(d,e-d))}; Ld=function(a,b){for(var c=a.search(Hd),d=0,e,f=[];0<=(e=Gd(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Kaa,"$1")}; Md=function(a,b,c){return Fd(Ld(a,b),b,c)}; Laa=function(a,b){var c=xd(a),d=c[1],e=[];d&&d.split("&").forEach(function(f){var h=f.indexOf("=");b.hasOwnProperty(0<=h?f.substr(0,h):f)||e.push(f)}); c[1]=yd(e.join("&"),g.Cd(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]}; Nd=function(){return Sc("iPhone")&&!Sc("iPod")&&!Sc("iPad")}; Od=function(){return Nd()||Sc("iPad")||Sc("iPod")}; Pd=function(a){Pd[" "](a);return a}; Qd=function(a,b){try{return Pd(a[b]),!0}catch(c){}return!1}; Rd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)}; Sd=function(){var a=g.v.document;return a?a.documentMode:void 0}; g.Ud=function(a){return Rd(Maa,a,function(){return 0<=g.zc(Td,a)})}; g.Vd=function(a){return Number(Naa)>=a}; g.Wd=function(a,b,c){return Math.min(Math.max(a,b),c)}; g.Xd=function(a,b){var c=a%b;return 0>c*b?c+b:c}; g.Yd=function(a,b,c){return a+c*(b-a)}; Zd=function(a,b){return 1E-6>=Math.abs(a-b)}; g.ae=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; be=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.ce=function(a,b){this.width=a;this.height=b}; g.de=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; ee=function(a){return a.width*a.height}; ie=function(a){return a?new fe(ge(a)):he||(he=new fe)}; je=function(a,b){return"string"===typeof b?a.getElementById(b):b}; g.le=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ke(document,"*",a,b)}; g.me=function(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.ke(c,"*",a,b)[0]||null}return c||null}; g.ke=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.ib(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a}; oe=function(a,b){g.Eb(b,function(c,d){c&&"object"==typeof c&&c.xj&&(c=c.Ig());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:ne.hasOwnProperty(d)?a.setAttribute(ne[d],c):lc(d,"aria-")||lc(d,"data-")?a.setAttribute(d,c):a[d]=c})}; pe=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.ce(a.clientWidth,a.clientHeight)}; ue=function(a){var b=qe(a);a=a.parentWindow||a.defaultView;return g.re&&g.Ud("10")&&a.pageYOffset!=b.scrollTop?new g.ae(b.scrollLeft,b.scrollTop):new g.ae(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}; qe=function(a){return a.scrollingElement?a.scrollingElement:g.ve||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}; we=function(a){return a?a.parentWindow||a.defaultView:window}; ze=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Oaa&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.jd(h.name),'"');if(h.type){f.push(' type="',g.jd(h.type),'"');var l={};g.Yb(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=xe(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):oe(f,h));2a}; Ne=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Me(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.ib(f.className.split(/\s+/),c))},!0,d)}; Me=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null}; fe=function(a){this.u=a||g.v.document||document}; Oe=function(a,b,c,d){var e=window,f="//web.archive.org/web/20201214145215/https://pagead2.googlesyndication.com/bg/"+g.jd(c)+".js";c=e.document;var h={};b&&(h._scs_=b);h._bgu_=f;h._bgp_=d;h._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(h);e=ie(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=vaa(g.fc("//web.archive.org/web/20201214145215/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.jd(a)+".js"});g.fd(e,a);c.getElementsByTagName("head")[0].appendChild(e)}; Pe=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}} function h(m){try{l(b["throw"](m))}catch(n){e(n)}} function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,h)} l((b=b.apply(a,void 0)).next())})}; Saa=function(a){return g.Lc(a,function(b){b=b.toString(16);return 1e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b}; g.Re=function(a){for(var b=[],c=0,d=0;ce)b[d++]=String.fromCharCode(e);else if(191e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")}; Te=function(a,b,c){this.B=null;this.u=this.C=this.D=0;this.F=!1;a&&Se(this,a,b,c)}; Ve=function(a,b,c){if(Ue.length){var d=Ue.pop();a&&Se(d,a,b,c);return d}return new Te(a,b,c)}; Se=function(a,b,c,d){b=b.constructor===Uint8Array?b:b.constructor===ArrayBuffer?new Uint8Array(b):b.constructor===Array?new Uint8Array(b):b.constructor===String?g.We(b):new Uint8Array(0);a.B=b;a.D=void 0!==c?c:0;a.C=void 0!==d?a.D+d:a.B.length;a.u=a.D}; Xe=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.B[a.u++],c|=(b&127)<<7*e;128<=b&&(b=a.B[a.u++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.B[a.u++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.F=!0}; Ye=function(a){var b=a.B;var c=b[a.u+0];var d=c&127;if(128>c)return a.u+=1,d;c=b[a.u+1];d|=(c&127)<<7;if(128>c)return a.u+=2,d;c=b[a.u+2];d|=(c&127)<<14;if(128>c)return a.u+=3,d;c=b[a.u+3];d|=(c&127)<<21;if(128>c)return a.u+=4,d;c=b[a.u+4];d|=(c&15)<<28;if(128>c)return a.u+=5,d>>>0;a.u+=5;128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&a.u++;return d}; Ze=function(a){this.u=Ve(a,void 0,void 0);this.F=this.u.u;this.B=this.C=-1;this.D=!1}; $e=function(a){var b=a.u;(b=b.u==b.C)||(b=a.D)||(b=a.u,b=b.F||0>b.u||b.u>b.C);if(b)return!1;a.F=a.u.u;b=Ye(a.u);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.D=!0,!1;a.C=b>>>3;a.B=c;return!0}; af=function(a){switch(a.B){case 0:if(0!=a.B)af(a);else{for(a=a.u;a.B[a.u]&128;)a.u++;a.u++}break;case 1:1!=a.B?af(a):a.u.advance(8);break;case 2:if(2!=a.B)af(a);else{var b=Ye(a.u);a.u.advance(b)}break;case 5:5!=a.B?af(a):a.u.advance(4);break;case 3:b=a.C;do{if(!$e(a)){a.D=!0;break}if(4==a.B){a.C!=b&&(a.D=!0);break}af(a)}while(1);break;default:a.D=!0}}; bf=function(a){var b=Ye(a.u);a=a.u;var c=a.B,d=a.u,e=d+b;b=[];for(var f="";dh)b.push(h);else if(192>h)continue;else if(224>h){var l=c[d++];b.push((h&31)<<6|l&63)}else if(240>h){l=c[d++];var m=c[d++];b.push((h&15)<<12|(l&63)<<6|m&63)}else if(248>h){l=c[d++];m=c[d++];var n=c[d++];h=(h&7)<<18|(l&63)<<12|(m&63)<<6|n&63;h-=65536;b.push((h>>10&1023)+55296,(h&1023)+56320)}8192<=b.length&&(f+=String.fromCharCode.apply(null,b),b.length=0)}c=f;if(8192>=b.length)b=String.fromCharCode.apply(null, b);else{e="";for(f=0;fb||a.u+b>a.B.length)a.F=!0,b=new Uint8Array(0);else{var c=a.B.subarray(a.u,a.u+b);a.u+=b;b=c}return b}; df=function(){this.u=[]}; g.ef=function(a,b){for(;127>>=7;a.u.push(b)}; g.ff=function(a,b){a.u.push(b>>>0&255);a.u.push(b>>>8&255);a.u.push(b>>>16&255);a.u.push(b>>>24&255)}; g.jf=function(a,b){void 0===b&&(b=0);gf();for(var c=hf[b],d=[],e=0;e>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,h||(l=64));d.push(c[p],c[f],c[l]||"",c[n]||"")}return d.join("")}; g.kf=function(a){for(var b=[],c=0,d=0;d>=8);b[c++]=e}return g.jf(b,3)}; Taa=function(a){var b=[];lf(a,function(c){b.push(c)}); return b}; g.We=function(a){!g.re||g.Ud("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;lf(a,function(f){d[e++]=f}); return d.subarray(0,e)}; lf=function(a,b){function c(m){for(;d>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}}; gf=function(){if(!mf){mf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));hf[c]=d;for(var e=0;eb;b++)a.u.push(c&127|128),c>>=7;a.u.push(1)}}; g.uf=function(a,b,c){if(null!=c&&null!=c){g.ef(a.u,8*b);a=a.u;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295>>7|b<<25)>>>0,b>>>=7;a.u.push(c)}}; g.vf=function(a,b,c){if(null!=c){g.ef(a.u,8*b+1);a=a.u;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)g.tf=0<1/d?0:2147483648,g.sf=0;else if(isNaN(d))g.tf=2147483647,g.sf=4294967295;else if(1.7976931348623157E308>>0,g.sf=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),g.tf=(c<<31|d/4294967296)>>>0,g.sf=d>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022>>0;g.sf=4503599627370496* d>>>0}g.ff(a,g.sf);g.ff(a,g.tf)}}; g.wf=function(){}; g.Bf=function(a,b,c,d){a.u=null;b||(b=[]);a.I=void 0;a.C=-1;a.Ff=b;a:{if(b=a.Ff.length){--b;var e=a.Ff[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||xf&&e instanceof Uint8Array)){a.D=b-a.C;a.B=e;break a}}a.D=Number.MAX_VALUE}a.F={};if(c)for(b=0;ba.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; g.vg=function(a){var b=ge(a),c=new g.ae(0,0);var d=b?ge(b):document;d=!g.re||g.Vd(9)||"CSS1Compat"==ie(d).u.compatMode?d.documentElement:d.body;if(a==d)return c;a=ug(a);b=ue(ie(b).u);c.x=a.left+b.x;c.y=a.top+b.y;return c}; xg=function(a,b){var c=new g.ae(0,0),d=we(ge(a));if(!Qd(d,"parent"))return c;var e=a;do{var f=d==b?g.vg(e):wg(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c}; g.zg=function(a,b){var c=yg(a),d=yg(b);return new g.ae(c.x-d.x,c.y-d.y)}; wg=function(a){a=ug(a);return new g.ae(a.left,a.top)}; yg=function(a){if(1==a.nodeType)return wg(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ae(a.clientX,a.clientY)}; g.Ag=function(a,b,c){if(b instanceof g.ce)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.sg(b,!0);a.style.height=g.sg(c,!0)}; g.sg=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.Bg=function(a){var b=hba;if("none"!=rg(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; hba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ve&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=ug(a),new g.ce(a.right-a.left,a.bottom-a.top)):new g.ce(b,c)}; g.Cg=function(a,b){a.style.display=b?"":"none"}; Gg=function(){if(Dg&&!Tf(Eg)){var a="."+Fg.domain;try{for(;2e?encodeURIComponent(eh(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; oba=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1}; fh=function(a,b){this.u=a;this.depth=b}; qba=function(){function a(l,m){return null==l?m:l} var b=Zg(),c=Math.max(b.length-1,0),d=ah(b);b=d.u;var e=d.B,f=d.C,h=[];f&&h.push(new fh([f.url,f.dx?2:0],a(f.depth,1)));e&&e!=f&&h.push(new fh([e.url,2],0));b.url&&b!=f&&h.push(new fh([b.url,0],a(b.depth,c)));d=g.Lc(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=$aa(b.url))&&d.push([new fh([e,1],a(b.depth,c))]);d.push([]);return g.Lc(d,function(l){return pba(c,l)})}; pba=function(a,b){g.gh(b,function(e){return 0<=e.depth}); var c=g.hh(b,function(e,f){return Math.max(e,f.depth)},-1),d=raa(c+2); d[0]=a;g.Cb(b,function(e){return d[e.depth+1]=e.u}); return d}; rba=function(){var a=qba();return g.Lc(a,function(b){return dh(b)})}; ih=function(){this.B=new Yg;this.u=Ug()?new Vg:new Tg}; sba=function(){jh();var a=Wg.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Wg.setInterval&&"function"===typeof Wg.clearInterval&&"function"===typeof Wg.setTimeout&&"function"===typeof Wg.clearTimeout)}; kh=function(a){jh();var b=Gg()||Wg;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)}; lh=function(){jh();return rba()}; mh=function(){}; jh=function(){return mh.getInstance().getContext()}; nh=function(a){g.Bf(this,a,null,null)}; tba=function(a){this.D=a;this.u=-1;this.B=this.C=0}; oh=function(a,b){return function(c){for(var d=[],e=0;eMath.random())}; yh=function(a){a&&xh&&vh()&&(xh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),xh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; Bh=function(){var a=zh;this.F=Ah;this.D="jserror";this.C=!0;this.u=null;this.I=this.B;this.Ya=void 0===a?null:a}; Hh=function(a,b,c,d){return oh(rh.getInstance().u.u,function(){try{if(a.Ya&&a.Ya.u){var e=a.Ya.start(b.toString(),3);var f=c();a.Ya.end(e)}else f=c()}catch(m){var h=a.C;try{yh(e);var l=new Fh(Gh(m));h=a.I(b,l,void 0,d)}catch(n){a.B(217,n)}if(!h)throw m;}return f})()}; Jh=function(a,b,c){var d=Ih;return oh(rh.getInstance().u.u,function(e){for(var f=[],h=0;hd?500:h}; Th=function(a,b,c){var d=new Zf(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.u=d;this.B=c}; Uh=function(a,b,c,d,e,f,h,l){this.D=a;this.K=b;this.C=c;this.I=d;this.u=e;this.F=f;this.B=h;this.N=l}; Vh=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Tf(a)&&(c=a,b=d);return{wf:c,level:b}}; Wh=function(a){var b=a!==a.top,c=a.top===Vh(a).wf,d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),Jb(Cba,function(h){return"function"===typeof f[h]})||(e=1)); return{Eh:f,compatibility:e,mQ:d}}; Dba=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint}; Xh=function(a,b,c,d){var e=void 0===e?!1:e;c=Jh(d,c,void 0);Pf(a,b,c,{capture:e})}; Yh=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c}; Zh=function(a){return new Zf(a.top,a.right,a.bottom,a.left)}; $h=function(a){var b=a.top||0,c=a.left||0;return new Zf(b,c+(a.width||0),b+(a.height||0),c)}; ai=function(a){return null!=a&&0<=a&&1>=a}; Eba=function(){var a=g.Rc;return a?bi("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return wc(a,b)})||wc(a,"OMI/")&&!wc(a,"XiaoMi/")?!0:wc(a,"Presto")&&wc(a,"Linux")&&!wc(a,"X11")&&!wc(a,"Android")&&!wc(a,"Mobi"):!1}; ci=function(){this.C=!Tf(Wg.top);this.isMobileDevice=Rf()||Sf();var a=Zg();this.domain=0c.height?n>r?(e=n,f=p):(e=r,f=t):nb.C?!1:a.Bb.B?!1:typeof a.utypeof b.u?!1:a.uc++;){if(a===b)return!0;try{if(a=g.Ge(a)||a){var d=ge(a),e=d&&we(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; Nba=function(a,b,c){if(!a||!b)return!1;b=$f(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Gg();Tf(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Dba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ge(c))&&b.defaultView&&b.defaultView.frameElement)&&Mba(b,a);d=a===c;a=!d&&a&&Me(a,function(e){return e===c}); return!(b||d||a)}; Oba=function(a,b,c,d){return ci.getInstance().C?!1:0>=a.se()||0>=a.getHeight()?!0:c&&d?Lh(208,function(){return Nba(a,b,c)}):!1}; Ti=function(a,b,c){g.C.call(this);this.position=Pba.clone();this.jt=this.ls();this.ox=-2;this.AQ=Date.now();this.XF=-1;this.lastUpdateTime=b;this.Rs=null;this.Hr=!1;this.Rt=null;this.opacity=-1;this.requestSource=c;this.jG=this.qx=g.Ka;this.Of=new lba;this.Of.Ik=a;this.Of.u=a;this.nn=!1;this.Al={Mx:null,Kx:null};this.IF=!0;this.zq=null;this.gn=this.sJ=!1;rh.getInstance().I++;this.ze=this.rw();this.WF=-1;this.xc=null;this.oJ=!1;a=this.ub=new Og;Pg(a,"od",Qba);Pg(a,"opac",qh).u=!0;Pg(a,"sbeos",qh).u= !0;Pg(a,"prf",qh).u=!0;Pg(a,"mwt",qh).u=!0;Pg(a,"iogeo",qh);(a=this.Of.Ik)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(Rba&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+od()):a.getAttribute("data-"+od()))&&(ci.getInstance().B=!0);1==this.requestSource?Qg(this.ub,"od",1):Qg(this.ub,"od",0)}; Ui=function(a,b){if(b!=a.gn){a.gn=b;var c=ci.getInstance();b?c.I++:0c?0:a}; Sba=function(a,b,c){if(a.xc){a.xc.ek();var d=a.xc.K,e=d.D,f=e.u;if(null!=d.I){var h=d.C;a.Rt=new g.ae(h.left-f.left,h.top-f.top)}f=a.tu()?Math.max(d.u,d.F):d.u;h={};null!==e.volume&&(h.volume=e.volume);e=a.wB(d);a.Rs=d;a.oa(f,b,c,!1,h,e,d.N)}}; Tba=function(a){if(a.Hr&&a.zq){var b=1==Rg(a.ub,"od"),c=ci.getInstance().u,d=a.zq,e=a.xc?a.xc.getName():"ns",f=new g.ce(c.se(),c.getHeight());c=a.tu();a={qQ:e,Rt:a.Rt,TQ:f,tu:c,sc:a.ze.sc,RQ:b};if(b=d.B){b.ek();e=b.K;f=e.D.u;var h=null,l=null;null!=e.I&&f&&(h=e.C,h=new g.ae(h.left-f.left,h.top-f.top),l=new g.ce(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.u,e.F):e.u;c={qQ:b.getName(),Rt:h,TQ:l,tu:c,RQ:!1,sc:e}}else c=null;c&&Jba(d,a,c)}}; Uba=function(a,b,c){b&&(a.qx=b);c&&(a.jG=c)}; Xi=function(){}; Zi=function(a){if(a instanceof Xi)return a;if("function"==typeof a.dj)return a.dj(!1);if(g.Na(a)){var b=0,c=new Xi;c.next=function(){for(;;){if(b>=a.length)throw Yi;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");}; g.$i=function(a,b,c){if(g.Na(a))try{g.Cb(a,b,c)}catch(d){if(d!==Yi)throw d;}else{a=Zi(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Yi)throw d;}}}; Vba=function(a){if(g.Na(a))return g.rb(a);a=Zi(a);var b=[];g.$i(a,function(c){b.push(c)}); return b}; Wba=function(){this.D=this.u=this.C=this.B=this.F=0}; Xba=function(a){var b={};b=(b.ptlt=g.A()-a.F,b);var c=a.B;c&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.u)&&(b.pns=a);return b}; aj=function(){Jg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; bj=function(a){return ai(a.volume)&&.1<=a.volume}; Yba=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.u={};for(var b in this.B)0Math.max(1E4,a.D/3)?0:c);var d=a.Y(a)||{};d=void 0!==d.currentTime?d.currentTime:a.W;var e=d-a.W,f=0;0<=e?(a.X+=c,a.ka+=Math.max(c-e,0),f=Math.min(e,a.X)):a.va+=Math.abs(e);0!=e&&(a.X=0);-1==a.Ca&&0=a.D/2:0=a.ea:!1:!1}; dca=function(a){var b=Yh(a.ze.sc,2),c=a.oe.C,d=a.ze,e=qj(a),f=pj(e.D),h=pj(e.I),l=pj(d.volume),m=Yh(e.K,2),n=Yh(e.X,2),p=Yh(d.sc,2),r=Yh(e.Y,2),t=Yh(e.fa,2);d=Yh(d.Yf,2);a=a.rk().clone();a.round();e=Qi(e,!1);return{SQ:b,rp:c,kt:f,gt:h,Co:l,mt:m,ht:n,sc:p,nt:r,it:t,Yf:d,position:a,Ot:e}}; uj=function(a,b){tj(a.u,b,function(){return{SQ:0,rp:void 0,kt:-1,gt:-1,Co:-1,mt:-1,ht:-1,sc:-1,nt:-1,it:-1,Yf:-1,position:void 0,Ot:[]}}); a.u[b]=dca(a)}; tj=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; Sj=function(a){a=void 0===a?Wg:a;pi.call(this,new hi(a,2))}; Uj=function(){var a=Tj();hi.call(this,Wg.top,a,"geo")}; Tj=function(){rh.getInstance();var a=ci.getInstance();return a.C||a.B?0:2}; Vj=function(){}; Wj=function(){this.done=!1;this.u={uH:0,Yz:0,A3:0,UA:0,Nw:-1,RH:0,QH:0,SH:0};this.F=null;this.I=!1;this.B=null;this.K=0;this.C=new gi(this)}; Yj=function(){var a=Xj;a.I||(a.I=!0,xca(a,function(b){for(var c=[],d=0;dg.Mb(Dca).length?null:(0,g.hh)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===ok[e[0]]||!ok[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}}; Fca=function(a,b){if(void 0==a.u)return 0;switch(a.F){case "mtos":return a.B?Mi(b.u,a.u):Mi(b.B,a.u);case "tos":return a.B?Fi(b.u,a.u):Fi(b.B,a.u)}return 0}; pk=function(a,b,c,d){ij.call(this,b,d);this.K=a;this.I=c}; qk=function(a){ij.call(this,"fully_viewable_audible_half_duration_impression",a)}; rk=function(a,b){ij.call(this,a,b)}; sk=function(){this.B=this.D=this.I=this.F=this.C=this.u=""}; Gca=function(){}; tk=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.Yb(f,a);void 0!==c&&g.Yb(f,c);a=ui(ti(new si,f));0String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1}; Wk=function(a){return!!(1<>>0]|=f<>>0).toString(16)+"&"}); c=105;g.Cb(Vca,function(d){var e="false";try{e=d(Wg)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); g.Cb(Wca,function(d){var e="";try{e=g.kf(d(Wg))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); return a.slice(0,-1)}; Tca=function(){if(!Xk){var a=function(){Yk=!0;Wg.document.removeEventListener("webdriver-evaluate",a,!0)}; Wg.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){Zk=!0;Wg.document.removeEventListener("webdriver-evaluate-response",b,!0)}; Wg.document.addEventListener("webdriver-evaluate-response",b,!0);Xk=!0}}; $k=function(){this.B=-1}; al=function(){this.B=64;this.u=Array(4);this.F=Array(this.B);this.D=this.C=0;this.reset()}; bl=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.u[0];c=a.u[1];e=a.u[2];var f=a.u[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15); h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295| h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<< 5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c= e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295; e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295| h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+ 3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571& 4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649& 4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.u[2]=a.u[2]+e&4294967295;a.u[3]=a.u[3]+f&4294967295}; cl=function(){this.B=null}; dl=function(a){return function(b){var c=new al;c.update(b+a);return Saa(c.digest()).slice(-8)}}; el=function(a,b){this.B=a;this.C=b}; gj=function(a,b,c){var d=a.u(c);if("function"===typeof d){var e={};e=(e.sv="884",e.cb="j",e.e=Yca(b),e);var f=xj(c,b,fi());g.Yb(e,f);c.yG[b]=f;a=2==c.li()?Iba(e).join("&"):a.C.u(e).u;try{return d(c.af,a,b),0}catch(h){return 2}}else return 1}; Yca=function(a){var b=nk(a)?"custom_metric_viewable":a;a=Qb(vj,function(c){return c==b}); return lk[a]}; fl=function(a,b,c){el.call(this,a,b);this.D=c}; gl=function(){Hk.call(this);this.I=null;this.F=!1;this.N={};this.C=new cl}; Zca=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.B&&Array.isArray(c)&&Lca(a,c,b)}; $ca=function(a,b,c){var d=Gj(Ij,b);d||(d=c.opt_nativeTime||-1,d=Ik(a,b,Nk(a),d),c.opt_osdId&&(d.Ln=c.opt_osdId));return d}; ada=function(a,b,c){var d=Gj(Ij,b);d||(d=Ik(a,b,"n",c.opt_nativeTime||-1));return d}; bda=function(a,b){var c=Gj(Ij,b);c||(c=Ik(a,b,"h",-1));return c}; cda=function(a){rh.getInstance();switch(Nk(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; il=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Yb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.u(mk("ol",d));if(void 0!==d)if(void 0!==kk(d))if(Kk)b=mk("ue",d);else if(Oca(a),"i"==Lk)b=mk("i",d),b["if"]=0;else if(b=a.ts(b,e))if(a.D&&3==b.ee)b="stopped";else{b:{"i"==Lk&&(b.nn=!0,a.zy());c=e.opt_fullscreen;void 0!==c&&Ui(b,!!c);var f;if(c=!ci.getInstance().B)(c=wc(g.Rc,"CrKey")||wc(g.Rc,"PlayStation")||wc(g.Rc,"Roku")||Eba()||wc(g.Rc,"Xbox"))||(c=g.Rc,c=wc(c,"AppleTV")|| wc(c,"Apple TV")||wc(c,"CFNetwork")||wc(c,"tvOS")),c||(c=g.Rc,c=wc(c,"sdk_google_atv_x86")||wc(c,"Android TV")),c=!c;c&&(jh(),c=0===Xg(Fg));if(f=c){switch(b.li()){case 1:Pk(a,b,"pv");break;case 2:a.qy(b)}Mk("pv")}c=d.toLowerCase();if(f=!f)f=Rg(rh.getInstance().ub,"ssmol")&&"loaded"===c?!1:g.ib(dda,c);if(f&&0==b.ee){"i"!=Lk&&(Xj.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;Sh=f="number"===typeof f?f:Oh();b.Hr=!0;var h=fi();b.ee=1;b.Be={};b.Be.start=!1;b.Be.firstquartile=!1;b.Be.midpoint=!1;b.Be.thirdquartile= !1;b.Be.complete=!1;b.Be.resume=!1;b.Be.pause=!1;b.Be.skip=!1;b.Be.mute=!1;b.Be.unmute=!1;b.Be.viewable_impression=!1;b.Be.measurable_impression=!1;b.Be.fully_viewable_audible_half_duration_impression=!1;b.Be.fullscreen=!1;b.Be.exitfullscreen=!1;b.Ov=0;h||(b.Qf().N=f);Zj(Xj,[b],!h)}(f=b.Bm[c])&&cj(b.oe,f);g.ib(eda,c)&&(b.pF=!0,oj(b));switch(b.li()){case 1:var l=nk(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.W[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=mk(void 0,c);g.Yb(e,d);d=e;break b}d= void 0}3==b.ee&&(a.D?b.xc&&b.xc.Gp():a.Po(b));b=d}else b=mk("nf",d);else b=void 0;else Kk?b=mk("ue"):(b=a.ts(b,e))?(d=mk(),g.Yb(d,wj(b,!0,!1,!1)),b=d):b=mk("nf");return"string"===typeof b?a.D&&"stopped"===b?hl:a.C.u(void 0):a.C.u(b)}; jl=function(a){return rh.getInstance(),"h"!=Nk(a)&&Nk(a),!1}; kl=function(a){var b={};return b.viewability=a.u,b.googleViewability=a.C,b.moatInit=a.F,b.moatViewability=a.I,b.integralAdsViewability=a.D,b.doubleVerifyViewability=a.B,b}; ll=function(a,b,c){c=void 0===c?{}:c;a=il(gl.getInstance(),b,c,a);return kl(a)}; ml=function(a,b){b=void 0===b?!1:b;var c=gl.getInstance().ts(a,{});c?nj(c):b&&(c=gl.getInstance().fq(null,Oh(),!1,a),c.ee=3,Lj([c]))}; nl=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"moz-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"chrome-untrusted"!==a&&"chrome"!==a&&"app"!==a&&"devtools"!==a)throw Error("Invalid URI scheme in origin: "+ a);c="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c}; fda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0} function b(r){for(var t=h,w=0;64>w;w+=4)t[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],B=e[3],E=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=B^x&(y^B);var J=1518500249}else G=x^y^B,J=1859775393;else 60>w?(G=x&y|B&(x|y),J=2400959708):(G=x^y^B,J=3395469782);G=((r<<5|r>>>27)&4294967295)+G+E+J+t[w]&4294967295;E=B;B=y;y=(x<<30|x>>>2)&4294967295;x=r;r=G}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]= e[2]+y&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+E&4294967295} function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],x=0,y=r.length;xn?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)r[t++]=e[w]>>x&255;return r} for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,YH:function(){for(var r=d(),t="",w=0;wc.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.u&&0<=h;h--){d.currentTarget=c[h];var l=Ll(c[h],f,!0,d);e=e&&l}for(h=0;!d.u&&ha.B&&(a.B++,b.next=a.u,a.u=b)}; Sl=function(a){g.v.setTimeout(function(){throw a;},0)}; Ul=function(a){a=mda(a);"function"!==typeof g.v.setImmediate||g.v.Window&&g.v.Window.prototype&&!Sc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(Tl||(Tl=nda()),Tl(a)):g.v.setImmediate(a)}; nda=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Sc("Presto")&&(a=function(){var e=g.Ae("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.z)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}}); if("undefined"!==typeof a&&!Sc("Trident")&&!Sc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.rA;c.rA=null;e()}}; return function(e){d.next={rA:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}}; Vl=function(){this.B=this.u=null}; Wl=function(){this.next=this.scope=this.u=null}; g.$l=function(a,b){Xl||oda();Yl||(Xl(),Yl=!0);Zl.add(a,b)}; oda=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);Xl=function(){a.then(am)}}else Xl=function(){Ul(am)}}; am=function(){for(var a;a=Zl.remove();){try{a.u.call(a.scope)}catch(b){Sl(b)}Ql(bm,a)}Yl=!1}; cm=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}; em=function(a){this.Ia=0;this.Xk=void 0;this.Pm=this.fk=this.km=null;this.ys=this.bw=!1;if(a!=g.Ka)try{var b=this;a.call(void 0,function(c){dm(b,2,c)},function(c){dm(b,3,c)})}catch(c){dm(this,3,c)}}; fm=function(){this.next=this.context=this.onRejected=this.C=this.u=null;this.B=!1}; hm=function(a,b,c){var d=gm.get();d.C=a;d.onRejected=b;d.context=c;return d}; im=function(a){if(a instanceof em)return a;var b=new em(g.Ka);dm(b,2,a);return b}; jm=function(a){return new em(function(b,c){c(a)})}; lm=function(a,b,c){km(a,b,c,null)||g.$l(g.Ra(b,a))}; pda=function(a){return new em(function(b,c){a.length||b(void 0);for(var d=0,e;db)throw Error("Bad port number "+b);a.D=b}else a.D=null}; Hm=function(a,b,c){b instanceof Jm?(a.C=b,tda(a.C,a.K)):(c||(b=Km(b,uda)),a.C=new Jm(b,a.K))}; g.Lm=function(a){return a instanceof g.Dm?a.clone():new g.Dm(a,void 0)}; Im=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; Km=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,vda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; vda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; Jm=function(a,b){this.B=this.u=null;this.C=a||null;this.D=!!b}; Mm=function(a){a.u||(a.u=new g.Am,a.B=0,a.C&&wd(a.C,function(b,c){a.add(id(b),c)}))}; Om=function(a,b){Mm(a);b=Nm(a,b);return Bm(a.u.B,b)}; g.Pm=function(a,b,c){a.remove(b);0e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.u[0];c=a.u[1];var h=a.u[2],l=a.u[3],m=a.u[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=l^c&(h^l);var n=1518500249}else f=c^h^l,n=1859775393;else 60>e?(f=c&h|l&(c|h),n=2400959708): (f=c^h^l,n=3395469782);f=(b<<5|b>>>27)+f+m+n+d[e]&4294967295;m=l;l=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+c&4294967295;a.u[2]=a.u[2]+h&4294967295;a.u[3]=a.u[3]+l&4294967295;a.u[4]=a.u[4]+m&4294967295}; $m=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""}; an=function(a){return a.classList?a.classList:$m(a).match(/\S+/g)||[]}; g.bn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)}; g.cn=function(a,b){return a.classList?a.classList.contains(b):g.ib(an(a),b)}; g.H=function(a,b){if(a.classList)a.classList.add(b);else if(!g.cn(a,b)){var c=$m(a);g.bn(a,c+(0document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)}; Gda=function(a){if(!a)return Nc;var b=document.createElement("div").style,c=Cda(a);g.Cb(c,function(d){var e=g.ve&&d in Dda?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");lc(e,"--")||lc(e,"var")||(d=mn(Eda,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=Bda(d),null!=d&&mn(Fda,b,b.setProperty?"setProperty":"setAttribute",[e,d]))}); return Haa(b.cssText||"")}; Cda=function(a){g.Na(a)?a=g.rb(a):(a=g.Mb(a),g.ob(a,"cssText"));return a}; g.on=function(a){var b,c=b=0,d=!1;a=a.split(Hda);for(var e=0;eg.A()}; g.Dn=function(a){this.u=a}; Oda=function(){}; En=function(){}; Fn=function(a){this.u=a}; Gn=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.u=a}; Hn=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.u=a}; Jn=function(a,b){this.B=a;this.u=null;if(g.re&&!g.Vd(9)){In||(In=new g.Am);this.u=In.get(a);this.u||(b?this.u=document.getElementById(b):(this.u=document.createElement("userdata"),this.u.addBehavior("#default#userData"),document.body.appendChild(this.u)),In.set(a,this.u));try{this.u.load(this.B)}catch(c){this.u=null}}}; Kn=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Pda[b]})}; Ln=function(a){try{a.u.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}}; Mn=function(a,b){this.B=a;this.u=b+"::"}; g.Nn=function(a){var b=new Gn;return b.isAvailable()?a?new Mn(b,a):b:null}; On=function(a,b){this.u=a;this.B=b}; Pn=function(a){this.u=[];if(a)a:{if(a instanceof Pn){var b=a.Hg();a=a.Af();if(0>=this.u.length){for(var c=this.u,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}; g.Rn=function(){Pn.call(this)}; Sn=function(){}; Tn=function(a){g.Bf(this,a,Qda,null)}; Un=function(a){g.Bf(this,a,null,null)}; Rda=function(a,b){for(;$e(b)&&4!=b.B;)switch(b.C){case 1:var c=cf(b);g.Ef(a,1,c);break;case 2:c=cf(b);g.Ef(a,2,c);break;case 3:c=cf(b);g.Ef(a,3,c);break;case 4:c=cf(b);g.Ef(a,4,c);break;case 5:c=Ye(b.u);g.Ef(a,5,c);break;default:af(b)}return a}; Sda=function(a){a=a.split("");var b=[486232336,a,a,function(c,d){for(var e=64,f=[];++e-f.length-32;){switch(e){case 91:e=44;continue;case 123:e=65;break;case 65:e-=18;continue;case 58:e=96;continue;case 46:e=95}f.push(String.fromCharCode(e))}c.forEach(function(h,l,m){this.push(m[l]=f[(f.indexOf(h)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))}, null,1862978701,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})}, 2011844128,805119280,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e}, -478014864,-584215181,-638535238,-97842473,-1778572628,-1298745225,a,-929386734,1305823560,null,-1230313983,-687524005,-2137167257,522624350,-487399869,-1490434425,-1158257255,141743129,609142851,238614397,function(c,d){c.push(d)}, 1559479752,-610708400,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())}, function(c){c.reverse()}, null,function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])}, -1648592949,266827970,"debugger",-1113773948,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])}, 1033943500,-1090087921,608782432,-756230267,486232336,-1759918041,2041652286,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)}, -802897620];b[4]=b;b[19]=b;b[35]=b;b[41](b[4],b[21]);b[6](b[4],b[43]);b[11](b[18],b[34]);b[8](b[18],b[22]);b[8](b[3],b[33]);b[43](b[4],b[47]);b[8](b[21],b[26]);b[27](b[45]);b[26](b[46],b[49]);b[2](b[46],b[39]);b[2](b[28],b[10]);b[29](b[48]);b[21](b[5]);b[24](b[38],b[15]);b[6](b[3],b[18]);b[49](b[36],b[28]);b[16](b[41],b[34]);b[8](b[41],b[39]);b[27](b[38],b[28]);b[8](b[5],b[35]);b[24](b[5],b[29]);b[0](b[38],b[44]);b[51](b[37],b[27]);b[20](b[24],b[0]);b[16](b[24],b[29]);b[36](b[42],b[37]);b[16](b[42], b[33]);b[16](b[6],b[13]);b[44](b[25],b[34]);b[20](b[6],b[11]);b[3](b[18]);b[19](b[17],b[40]);b[48](b[15],b[40]);b[20](b[15],b[25]);b[48](b[18],b[10]);b[39](b[30],b[41]);b[19](b[30],b[28]);b[39](b[49],b[16]);b[32](b[45],b[17]);b[19](b[13],b[29]);return a.join("")}; Wn=function(a){var b=arguments;1f&&(c=a.substring(f,e),c=c.replace(Uda,""),c=c.replace(Vda,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Wda(a,b,c)}; Wda=function(a,b,c){c=void 0===c?null:c;var d=xo(a),e=document.getElementById(d),f=e&&fo(e),h=e&&!f;f?b&&b():(b&&(f=g.ro(d,b),b=""+g.Qa(b),yo[b]=f),h||(e=Xda(a,d,function(){fo(e)||(eo(e,"loaded","true"),g.to(d),g.ko(g.Ra(vo,d),0))},c)))}; Xda=function(a,b,c,d){d=void 0===d?null:d;var e=g.Ae("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; d&&e.setAttribute("nonce",d);g.fd(e,g.jg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; xo=function(a){var b=document.createElement("a");g.ed(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+ld(a)}; Ao=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=zo+"VisibilityState";if(b in a)return a[b]}; Bo=function(a,b){var c;bi(a,function(d){c=b[d];return!!c}); return c}; Co=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Yda||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.u=a.pageX;this.B=a.pageY}}catch(e){}}; Do=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.u=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}}; Zda=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Qb(Eo,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Oa(e[4])&&g.Oa(d)&&g.Ub(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})}; g.Ho=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Zda(a,b,c,d);if(e)return e;e=++Fo.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Co(l);if(!Me(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Co(l); l.currentTarget=a;return c.call(a,l)}; h=io(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Go()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Eo[e]=[a,b,c,h,d];return e}; $da=function(a,b){var c=document.body||document;return g.Ho(c,"click",function(d){var e=Me(d.target,function(f){return f===c||b(f)},!0); e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})}; g.Io=function(a){a&&("string"==typeof a&&(a=[a]),g.Cb(a,function(b){if(b in Eo){var c=Eo[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Go()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Eo[b]}}))}; g.Jo=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a}; Ko=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.Jo(a)}; Lo=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b}; Mo=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.ae(b,c)}; g.No=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}; g.Oo=function(a){a=a||window.event;return!1===a.returnValue||a.gC&&a.gC()}; g.Qo=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which}; aea=function(a){return $da(a,function(b){return g.cn(b,"ytp-ad-has-logging-urls")})}; g.Ro=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Ho(a,b,function(){g.Io(e);c.apply(a,arguments)},d)}; So=function(a){for(var b in Eo)Eo[b][0]==a&&g.Io(b)}; To=function(a){this.P=a;this.u=null;this.D=0;this.I=null;this.F=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.N=g.Ho(window,"mousemove",(0,g.z)(this.X,this));this.W=lo((0,g.z)(this.K,this),25)}; Uo=function(){}; Wo=function(a,b){return Vo(a,0,b)}; g.Xo=function(a,b){return Vo(a,1,b)}; Yo=function(){Uo.apply(this,arguments)}; g.Zo=function(){return!!g.Ja("yt.scheduler.instance")}; Vo=function(a,b,c){isNaN(c)&&(c=void 0);var d=g.Ja("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.ko(a,c||0)}; g.$o=function(a){if(!isNaN(a)){var b=g.Ja("yt.scheduler.instance.cancelJob");b?b(a):g.mo(a)}}; ap=function(a){var b=g.Ja("yt.scheduler.instance.setPriorityThreshold");b&&b(a)}; dp=function(){var a={},b=void 0===a.jJ?!0:a.jJ;a=void 0===a.MP?!1:a.MP;if(null==g.Ja("_lact",window)){var c=parseInt(g.L("LACT"),10);c=isFinite(c)?g.A()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&bp();g.Ho(document,"keydown",bp);g.Ho(document,"keyup",bp);g.Ho(document,"mousedown",bp);g.Ho(document,"mouseup",bp);b&&(a?g.Ho(window,"touchmove",function(){cp("touchmove",200)},{passive:!0}):(g.Ho(window,"resize",function(){cp("resize",200)}),g.Ho(window,"scroll",function(){cp("scroll", 200)}))); new To(function(){cp("mouse",100)}); g.Ho(document,"touchstart",bp,{passive:!0});g.Ho(document,"touchend",bp,{passive:!0})}}; cp=function(a,b){ep[a]||(ep[a]=!0,g.Xo(function(){bp();ep[a]=!1},b))}; bp=function(){null==g.Ja("_lact",window)&&(dp(),g.Ja("_lact",window));var a=g.A();g.Fa("_lact",a,window);-1==g.Ja("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ja("ytglobal.ytUtilActivityCallback_"))&&a()}; fp=function(){var a=g.Ja("_lact",window),b;null==a?b=-1:b=Math.max(g.A()-a,0);return b}; lp=function(a){a=void 0===a?!1:a;return new em(function(b){g.mo(gp);g.mo(hp);hp=0;ip&&ip.isReady()?(bea(b,a),jp.clear()):(kp(),b())})}; kp=function(){g.Zn("web_gel_timeout_cap")&&!hp&&(hp=g.ko(lp,6E4));g.mo(gp);var a=g.L("LOGGING_BATCH_TIMEOUT",g.$n("web_gel_debounce_ms",1E4));g.Zn("shorten_initial_gel_batch_timeout")&&mp&&(a=cea);gp=g.ko(lp,a)}; bea=function(a,b){var c=ip;b=void 0===b?!1:b;for(var d=Math.round((0,g.N)()),e=jp.size,f=g.q(jp),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;var m=l.next().value;l=g.Wb(g.np(c.Nf||g.op()));l.events=m;(m=pp[h])&&dea(l,h,m);delete pp[h];eea(l,d);g.qp(c,"log_event",l,{retry:!0,onSuccess:function(){e--;e||a();rp=Math.round((0,g.N)()-d)}, onError:function(){e--;e||a()}, VQ:b});mp=!1}}; eea=function(a,b){a.requestTimeMs=String(b);g.Zn("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=g.L("EVENT_ID",void 0);if(c){var d=g.L("BATCH_CLIENT_COUNTER",void 0)||0;!d&&g.Zn("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*sp/2));d++;d>sp&&(d=1);Wn("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;tp&&rp&&g.Zn("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:tp,roundtripMs:String(rp)});tp= c;rp=0}}; dea=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]}; wp=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.N)());e[a]=b;a=fp();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Zn("log_sequence_info_on_gel_web")&&d.Sj&&(a=e.context,b=d.Sj,up[b]=b in up?up[b]+1:0,a.sequence={index:up[b],groupKey:b},d.cI&&delete up[d.Sj]);d=d.fi;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),pp[d.token]=a,a=d.token);d=jp.get(a)||[];jp.set(a,d);d.push(e);c&&(ip=new c);c=g.$n("web_logging_max_batch")|| 100;e=(0,g.N)();d.length>=c?lp(!0):10<=e-vp&&(kp(),vp=e)}; xp=function(){return g.Ja("yt.ads.biscotti.lastId_")||""}; yp=function(a){g.Fa("yt.ads.biscotti.lastId_",a,void 0)}; zp=function(a){for(var b=a.split("&"),c={},d=0,e=b.length;dh.status)?h.json().then(m,function(){m(null)}):m(null)}}); b.ZD&&0m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=lea(a,c,m,b.Z2);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};r=b.context||g.v;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.Rf&&b.Rf.call(r,m,p)}},b.method,d,b.headers,b.responseType, b.withCredentials); if(b.ug&&0Math.random()&&g.jo(new g.Gq("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Gq("innertube xhrclient not ready",b,c,d),M(a),a.sampleWeight=0,a;var e={headers:{"Content-Type":"application/json"},method:"POST",oc:c,QE:"JSON",ug:function(){d.ug()}, ZD:d.ug,onSuccess:function(l,m){if(d.onSuccess)d.onSuccess(m)}, t3:function(l){if(d.onSuccess)d.onSuccess(l)}, onError:function(l,m){if(d.onError)d.onError(m)}, s3:function(l){if(d.onError)d.onError(l)}, timeout:d.timeout,withCredentials:!0};c="";var f=a.Nf.bC;f&&(c=f);f=oea(a.Nf.dC||!1,c,d);Object.assign(e.headers,f);e.headers.Authorization&&!c&&(e.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.Nf.innertubeApiVersion+"/"+b;f={alt:"json"};a.Nf.cC&&e.headers.Authorization||(f.key=a.Nf.innertubeApiKey);var h=g.Fp(""+c+b,f);wr().then(function(){try{g.Zn("use_fetch_for_op_xhr")?kea(h,e):g.Zn("networkless_gel")&&d.retry?(e.method="POST",!d.VQ&&g.Zn("nwl_send_fast_on_unload")?Jea(h,e):Mr(h, e)):(e.method="POST",e.oc||(e.oc={}),g.Vp(h,e))}catch(l){if("InvalidAccessError"==l.name)g.jo(Error("An extension is blocking network request."));else throw l;}})}; g.rq=function(a,b,c){c=void 0===c?{}:c;var d=g.Or;g.L("ytLoggingEventsDefaultDisabled",!1)&&g.Or==g.Or&&(d=null);wp(a,b,d,c)}; Kea=function(){this.Qm=[];this.Zl=[]}; Qr=function(){Pr||(Pr=new Kea);return Pr}; Sr=function(a,b,c,d){c+="."+a;a=Rr(b);d[c]=a;return c.length+a.length}; Rr=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}; Lea=function(a){g.Tr(a)}; g.Ur=function(a){g.Tr(a,"WARNING")}; g.Tr=function(a,b){var c=void 0===c?{}:c;c.name=g.L("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=c||{};c=void 0===b?"ERROR":b;c=void 0===c?"ERROR":c;var e=void 0===e?!1:e;if(a){if(g.Zn("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"), a)}if((!g.Zn("web_yterr_killswitch")||window&&window.yterr||e)&&!(5<=Vr)&&0!==a.sampleWeight){var h=Vaa(a);e=h.message||"Unknown Error";f=h.name||"UnknownError";var l=h.stack||a.u||"Not available";if(g.Zn("kevlar_js_fixes")&&l.startsWith(f+": "+e)){var m=l.split("\n");m.shift();l=m.join("\n")}m=h.lineNumber||"Not available";h=h.fileName||"Not available";if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var n=0,p=0;p=l||403===Op(n.xhr)?jm(new fs("Request retried too many times","net.retryexhausted",n.xhr)):f(m).then(function(){return e(gs(a,b),l-1,Math.pow(2,c-l+1)*m)})})} function f(h){return new em(function(l){setTimeout(l,h)})} return e(gs(a,b),c-1,d)}; fs=function(a,b,c){Va.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"}; is=function(){this.Ia=0;this.u=null}; js=function(a){var b=new is;a=void 0===a?null:a;b.Ia=2;b.u=void 0===a?null:a;return b}; ks=function(a){var b=new is;a=void 0===a?null:a;b.Ia=1;b.u=void 0===a?null:a;return b}; ms=function(a){Va.call(this,a.message||a.description||a.name);this.isMissing=a instanceof ls;this.isTimeout=a instanceof fs&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof um}; ls=function(){Va.call(this,"Biscotti ID is missing from server")}; Qea=function(){if(g.Zn("disable_biscotti_fetch_on_html5_clients"))return jm(Error("Fetching biscotti ID is disabled."));if(g.Zn("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!cs())return jm(Error("User has not consented - not fetching biscotti id."));if("1"===g.Nb(g.L("PLAYER_CONFIG",{}),"args","privembed"))return jm(Error("Biscotti ID is not available in private embed mode"));ns||(ns=pm(gs("//web.archive.org/web/20201214145215/https://googleads.g.doubleclick.net/pagead/id",os).then(ps),function(a){return qs(2,a)})); return ns}; ps=function(a){a=a.responseText;if(!lc(a,")]}'"))throw new ls;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new ls;a=a.id;yp(a);ns=ks(a);rs(18E5,2);return a}; qs=function(a,b){var c=new ms(b);yp("");ns=js(c);0b;b++){c=g.A();for(var d=0;d"',style:"display:none"}),ge(a).body.appendChild(a)));else if(e)Wp(a,b,"POST",e,d);else if(g.L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Wp(a,b,"GET","",d);else{b:{try{var f=new jaa({url:a});if(f.C&&f.B||f.D){var h=qd(g.sd(5,a));var l=!(!h||!h.endsWith("/aclk")|| "1"!==Id(a,"ri"));break b}}catch(m){}l=!1}l?Dt(a)?(b&&b(),c=!0):c=!1:c=!1;c||bfa(a,b)}}; Ft=function(a,b,c){c=void 0===c?"":c;Dt(a,c)?b&&b():g.Et(a,b,void 0,void 0,c)}; Dt=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; bfa=function(a,b){var c=new Image,d=""+cfa++;Gt[d]=c;c.onload=c.onerror=function(){b&&Gt[d]&&b();delete Gt[d]}; c.src=a}; Jt=function(a,b){for(var c=[],d=1;da.Rb())a.segments=[];else{var c=cb(a.segments,function(d){return d.nb>=b},a); 0a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(97>d||122=a.B.byteLength}; Ou=function(a,b,c){var d=new Hu(c);if(!Ju(d,a))return!1;d=Ku(d);if(!Lu(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.u;var e=Mu(d,!0);d=a+(d.start+d.u-b)+e;d=9d;d++)c=256*c+Uu(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Uu(a),d*=128;return b?c-d:c}; Ru=function(a){var b=Mu(a,!0);a.u+=b}; Pu=function(a){var b=a.u;a.u=0;var c=!1;try{Lu(a,440786851)&&(a.u=0,Lu(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.u=0,c=!1,g.jo(d);else throw d;}a.u=b;return c}; kfa=function(a){if(!Lu(a,440786851,!0))return null;var b=a.u;Mu(a,!1);var c=Mu(a,!0)+a.u-b;a.u=b+c;if(!Lu(a,408125543,!1))return null;Mu(a,!0);if(!Lu(a,357149030,!0))return null;var d=a.u;Mu(a,!1);var e=Mu(a,!0)+a.u-d;a.u=d+e;if(!Lu(a,374648427,!0))return null;var f=a.u;Mu(a,!1);var h=Mu(a,!0)+a.u-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.B.buffer, a.B.byteOffset+d,e),c+12);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+f,h),c+12+e);return l}; Wu=function(a){var b=a.u,c={Qy:1E6,Ry:1E9,duration:0,vy:0,nq:0};if(!Lu(a,408125543))return a.u=b,null;c.vy=Mu(a,!0);c.nq=a.start+a.u;if(Lu(a,357149030))for(var d=Ku(a);!Iu(d);){var e=Mu(d,!1);2807729===e?c.Qy=Qu(d):2807730===e?c.Ry=Qu(d):17545===e?c.duration=Su(d):Ru(d)}else return a.u=b,null;a.u=b;return c}; Yu=function(a,b,c){var d=a.u,e=[];if(!Lu(a,475249515))return a.u=d,null;for(var f=Ku(a);Lu(f,187);){var h=Ku(f);if(Lu(h,179)){var l=Qu(h);if(Lu(h,183)){h=Ku(h);for(var m=b;Lu(h,241);)m=Qu(h)+b;e.push({zl:m,Dr:l})}}}if(0c&&(c=a.totalLength-b);a.focus(b);if(!fv(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.u[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.u[h],f),f+=a.u[h].length;a.u.splice(d,a.B-d+1,e);ev(a);a.focus(b)}d=a.u[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)}; iv=function(a,b,c){a=hv(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; jv=function(a){a=iv(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ch)c=!1;else{for(f=h-1;0<=f;f--)c.B.setUint8(c.u+f,d&255),d>>>=8;c.u=e;c=!0}else c=!1;return c}; vv=function(a){g.qv(a.info.u.info)||a.info.u.info.Qd();if(a.B&&6==a.info.type)return a.B.Ug;if(g.qv(a.info.u.info)){var b=nv(a);var c=0;b=Fu(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=Cu(d.value),c+=d.zu[0]/d.Bu;c=c||NaN;if(!(0<=c))a:{c=nv(a);b=a.info.u.u;for(var e=d=0,f=0;yu(c,d);){var h=zu(c,d);if(1836476516===h.type)e=vu(h);else if(1836019558===h.type){!e&&b&&(e=wu(b));if(!e){c=NaN;break a}var l=xu(h.data,h.dataOffset,1953653094),m=e,n=xu(l.data,l.dataOffset,1952868452);l=xu(l.data, l.dataOffset,1953658222);var p=lu(n);lu(n);p&2&&lu(n);n=p&8?lu(n):0;var r=lu(l),t=r&1;p=r&4;var w=r&256,x=r&512,y=r&1024;r&=2048;var B=mu(l);t&&lu(l);p&&lu(l);for(var E=t=0;E=b.QA||1<=d.u)if(a=aw(a),c=$v(c,Mv(a)),c.B+c.u<=d.B+d.u)return!0;return!1}; yfa=function(a,b){var c=b?aw(a):a.u;return new Tv(c)}; aw=function(a){a.C||(a.C=Pv(a.D));return a.C}; cw=function(a){return 1=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=h}return"tiny"}; uw=function(a,b,c,d,e,f,h,l,m){this.id=a;this.mimeType=b;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.u=void 0===e?null:e;this.Ld=void 0===f?null:f;this.captionTrack=void 0===m?null:m;this.D=!0;this.B=null;this.containerType=rw(b);this.wb=h||0;this.C=l||0;this.Eb=tw[this.Tb()]||""}; vw=function(a){return 0=c+d)break}return new ew(e)}; Jw=function(){void 0===Iw&&(Iw=g.Nn());return Iw}; Lw=function(a){a=void 0===a?!1:a;var b=Jw();if(!b)return Kw={};if(!Kw||a)try{var c=b.get("yt-player-lv");Kw=JSON.parse(c||"{}")}catch(d){Kw={}}return Kw}; Mw=function(a){var b=Jw();if(b){var c=JSON.stringify(a);b.set("yt-player-lv",c);Kw=a}}; Nw=function(a){return Lw()[a]||0}; Ow=function(){var a=Lw();return Object.keys(a)}; Pw=function(a){var b=Lw();return Object.keys(b).filter(function(c){return b[c]===a})}; Qw=function(a,b,c){c=void 0===c?!1:c;var d=Lw(!0);if(c&&Object.keys(d).pop()!==a)delete d[a];else if(b===d[a])return;0!==b?d[a]=b:delete d[a];Mw(d)}; zfa=function(a){var b=Lw(!0);b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):3!==b[c]&&2!==b[c]&&(b[c]=4);Object.assign(b,a);Mw(b);JSON.stringify(b);return b}; Rw=function(a){return!!a&&1===Nw(a)}; Afa=function(){var a=Jw();if(!a)return!1;try{return null!==a.get("yt-player-lv-id")}catch(b){return!1}}; Ww=function(){return Pe(this,function b(){var c,d,e,f;return xa(b,function(h){if(1==h.u){c=Jw();if(!c)return h["return"](Promise.reject("No LocalStorage"));if(Sw){h.u=2;return}d=oq().u(Tw);var l=Object.assign({},d);delete l.Authorization;var m=pl();if(m){var n=new Ym;n.update(g.L("INNERTUBE_API_KEY",void 0));n.update(m);l.hash=g.jf(n.digest(),3)}m=new Ym;m.update(JSON.stringify(l,Object.keys(l).sort()));l=m.digest();m="";for(n=0;nc;){var t=p.shift(); if(t!==a){n-=m[t]||0;delete m[t];var w=IDBKeyRange.bound(t+"|",t+"~");r.push(Oq(l,"index")["delete"](w));r.push(Oq(l,"media")["delete"](w));Qw(t,0)}}return Dr.all(r).then(function(){})})}))})})}; Ffa=function(a,b){return Pe(this,function d(){var e,f;return xa(d,function(h){if(1==h.u)return ra(h,Ww(),2);e=h.B;f={offlineVideoData:b};return ra(h,Pq(e,"metadata",f,a),0)})})}; Gfa=function(a,b){var c=Math.floor(Date.now()/1E3);Pe(this,function e(){var f,h;return xa(e,function(l){if(1==l.u)return JSON.stringify(b.offlineState),f={timestampSecs:c,player:b},ra(l,Ww(),2);h=l.B;return ra(l,Pq(h,"playerdata",f,a),0)})})}; ax=function(a,b,c,d,e){return Pe(this,function h(){var l,m,n,p;return xa(h,function(r){switch(r.u){case 1:return l=Nw(a),4===l?r["return"](Promise.resolve(4)):ra(r,Ww(),2);case 2:return m=r.B,r.C=3,ra(r,Mq(m,["index","media"],"readwrite",function(t){if(void 0!==d&&void 0!==e){var w=""+a+"|"+b.id+"|"+d;w=Nq(Oq(t,"media"),e,w)}else w=Dr.resolve(void 0);var x=$w(a,b.isVideo()),y=$w(a,!b.isVideo()),B={fmts:c};x=Nq(Oq(t,"index"),B,x);var E=Zw(c);t=E?Oq(t,"index").get(y):Dr.resolve(void 0);return Dr.all([t, w,x]).then(function(G){G=g.q(G).next().value;var J=Nw(a);4!==J&&E&&void 0!==G&&Zw(G.fmts)&&(J=1,Qw(a,J));return J})}),5); case 5:return r["return"](r.B);case 3:n=ua(r);p=Nw(a);if(4===p)return r["return"](p);Qw(a,4);throw n;}})})}; Hfa=function(a){return Pe(this,function c(){var d;return xa(c,function(e){if(1==e.u)return ra(e,Ww(),2);d=e.B;return e["return"](Mq(d,["index"],"readonly",function(f){return Xw(f,a)}))})})}; Ifa=function(a,b,c){return Pe(this,function e(){var f;return xa(e,function(h){if(1==h.u)return ra(h,Ww(),2);f=h.B;return h["return"](Mq(f,["media"],"readonly",function(l){var m=""+a+"|"+b+"|"+c;return Oq(l,"media").get(m)}))})})}; Jfa=function(a){return Pe(this,function c(){var d;return xa(c,function(e){if(1==e.u)return ra(e,Ww(),2);d=e.B;return e["return"](d.get("playerdata",a))})})}; Kfa=function(a){return Pe(this,function c(){var d,e,f,h;return xa(c,function(l){return 1==l.u?ra(l,Ww(),2):3!=l.u?(d=l.B,e=[],f=[],h=[],ra(l,Mq(d,["metadata"],"readonly",function(m){return Tq(Oq(m,"metadata"),{},function(n){var p,r,t=n.getKey(),w=null===(p=n.getValue())||void 0===p?void 0:p.offlineVideoData;if(!w)return n["continue"]();if(t===a){if(t=null===(r=w.thumbnail)||void 0===r?void 0:r.thumbnails){t=g.q(t);for(var x=t.next();!x.done;x=t.next())x=x.value,x.url&&e.push(x.url)}f.push.apply(f, g.la(bx(w)))}else h.push.apply(h,g.la(bx(w)));return n["continue"]()})}),3)):l["return"](e.concat(f.filter(function(m){return!h.includes(m)})))})})}; bx=function(a){var b,c,d,e=null===(d=null===(c=null===(b=a.channel)||void 0===b?void 0:b.offlineChannelData)||void 0===c?void 0:c.thumbnail)||void 0===d?void 0:d.thumbnails;if(!e)return[];a=[];e=g.q(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.url&&a.push(f.url);return a}; Lfa=function(a){return Pe(this,function c(){var d;return xa(c,function(e){if(1==e.u)return ra(e,Ww(),2);d=e.B;return e["return"](Mq(d,["index","metadata"],"readonly",function(f){return cx(f,a)}))})})}; Mfa=function(){return Pe(this,function b(){var c;return xa(b,function(d){if(1==d.u)return ra(d,Ww(),2);c=d.B;return d["return"](Mq(c,["index","metadata"],"readonly",function(e){return Dr.all(Ow().map(function(f){return cx(e,f)}))}))})})}; cx=function(a,b){var c=Oq(a,"metadata").get(b);return Xw(a,b).then(function(d){var e={videoId:b,totalSize:0,downloadedSize:0,status:Nw(b),videoData:null};if(d.length){d=Cp(d);d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.totalSize+=+f.mket*+f.avbr,e.downloadedSize+=f.hasOwnProperty("dlt")?(+f.dlt||0)*+f.avbr:+f.mket*+f.avbr}return c.then(function(h){e.videoData=(null===h||void 0===h?void 0:h.offlineVideoData)||null;return e})})}; Nfa=function(a){return Pe(this,function c(){return xa(c,function(d){Qw(a,0);return d["return"](Yw(a,!0))})})}; Uw=function(){return Pe(this,function b(){var c;return xa(b,function(d){c=Jw();if(!c)return d["return"](Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");var e=Jw();e&&(e.remove("yt-player-lv"),Kw=null);return ra(d,Bfa(),0)})})}; Zw=function(a){return!!a&&-1===a.indexOf("dlt")}; $w=function(a,b){return""+a+"|"+(b?"v":"a")}; Cfa=function(){}; dx=function(){var a=this;this.u=this.B=iaa;this.promise=new em(function(b,c){a.B=b;a.u=c})}; Ofa=function(a,b){this.K=a;this.u=b;this.F=a.bM;this.I=new Uint8Array(this.F);this.D=this.C=0;this.B=null;this.N=[];this.W=this.X=null;this.P=new dx}; Pfa=function(a){var b=ex(a);b=ax(a.K.C,a.u.info,b);fx(a,b)}; gx=function(a){return!!a.B&&a.B.F}; ix=function(a,b){if(!gx(a)){if(1==b.info.type)a.X=Vt(0,b.u.getLength());else if(2==b.info.type){if(!a.B||1!=a.B.type)return;a.W=Vt(a.D*a.F+a.C,b.u.getLength())}else if(3==b.info.type){if(3==a.B.type&&!au(a.B,b.info)&&(a.N=[],b.info.B!=cu(a.B)||0!=b.info.C))return;if(b.info.D)a.N.map(function(c){return hx(a,c)}),a.N=[]; else{a.N.push(b);a.B=b.info;return}}a.B=b.info;hx(a,b);Qfa(a)}}; hx=function(a,b){for(var c=0,d=iv(b.u);c=e)break;var f=c.getUint32(d+4);if(1836019574===f)d+=8;else{if(1886614376===f){f=a.subarray(d,d+e);var h=new Uint8Array(b.length+f.length);h.set(b);h.set(f,b.length);b=h}d+=e}}return b}; Ufa=function(a){a=Fu(a,1886614376);g.Cb(a,function(b){return!b.B}); return g.Lc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})}; Vfa=function(a){var b=g.hh(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0; g.Cb(a,function(e){c.set(e,d);d+=e.length}); return c}; Wfa=function(a,b){this.ids=a;this.u=b}; mx=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.u=this.cryptoPeriodIndex=NaN;this.B=[];this.Qd=!1}; nx=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0=a.u.getLength())throw Error();return kv(a.u,a.offset++)}; qx=function(a,b){b=void 0===b?!1:b;var c=px(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=px(a);-1===c&&255!==e&&(c=0);-1e&&d>c;e++)c=256*c+px(a),d*=128;return b?c:c-d}; rx=function(a,b,c){g.O.call(this);var d=this;this.D=a;this.B=[];this.u=null;this.X=-1;this.N=0;this.ea=NaN;this.P=0;this.C=b;this.Ha=c;this.I=NaN;this.la=0;this.va=-1;this.F=this.W=this.Ca=this.Y=this.fa=this.K=this.ca=null;this.D.C&&(this.F=new Ofa(this.D,this.C),this.F.P.promise.then(function(e){d.F=null;1==e&&d.V("localmediachange",e)},function(){d.F=null; d.V("localmediachange",4)}),Pfa(this.F)); this.Aa=!1;this.ka=0}; sx=function(a){return a.B.length?a.B[0]:null}; tx=function(a){return a.B.length?a.B[a.B.length-1]:null}; Ax=function(a,b,c){if(a.fa){if(a.D.dr){var d=a.fa;var e=c.info;d=d.B!=e.B&&e.B!=d.B+1||d.type!=e.type||Zd(d.K,e.K)&&d.B===e.B?!1:bu(d,e)}else d=bu(a.fa,c.info);d||(a.I=NaN,a.la=0,a.va=-1)}a.fa=c.info;a.C=c.info.u;0==c.info.C?ux(a):!a.C.jf()&&a.K&&eu(c.info,a.K);a.u?(c=pv(a.u,c),a.u=c):a.u=c;a:{c=g.qv(a.u.info.u.info);if(3!=a.u.info.type){if(!a.u.info.D)break a;6==a.u.info.type?vx(a,b,a.u):wx(a,a.u);a.u=null}for(;a.u;){d=a.u.u.getLength();if(0>=a.X&&0==a.N){var f=a.u.u,h=-1;e=-1;if(c){for(var l=0;l+ 8e&&(h=-1)}else{f=new ox(f);for(m=l=!1;;){n=f.offset;var p=f;try{var r=qx(p,!0),t=qx(p,!1);var w=r;var x=t}catch(B){x=w=-1}p=w;var y=x;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.offset+y,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.offset+y);if(160===p){0>h&&(e=h=f.offset+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.X=h;a.N= e-h}if(a.X>d)break;a.X?(d=xx(a,a.X),d.C&&!a.C.jf()&&yx(a,d),vx(a,b,d),zx(a,d),a.X=0):a.N&&(d=xx(a,0>a.N?Infinity:a.N),a.N-=d.u.getLength(),zx(a,d))}}a.u&&a.u.info.D&&(zx(a,a.u),a.u=null)}; wx=function(a,b){!a.C.jf()&&0==b.info.C&&(g.qv(b.info.u.info)||b.info.u.info.Qd())&&xv(b);if(1==b.info.type)try{yx(a,b),Bx(a,b)}catch(d){M(d);var c=du(b.info);c.hms="1";a.V("error",c||{})}b.info.u.As(b);a.F&&ix(a.F,b)}; Xfa=function(a){var b=a.B.reduce(function(c,d){return c+d.u.getLength()},0); a.u&&(b+=a.u.u.getLength());return b}; Cx=function(a){return g.Lc(a.B,function(b){return b.info})}; xx=function(a,b){var c=a.u,d=Math.min(b,c.u.getLength());if(d==c.u.getLength())return a.u=null,c;c.u.getLength();d=Math.min(d,c.info.ob);var e=c.u.split(d),f=e.Cs;e=e.xm;var h=new Yt(c.info.type,c.info.u,c.info.range,c.info.N,c.info.B,c.info.startTime,c.info.duration,c.info.C,d,!1,!1);f=new mv(h,f,c.C);c=new Yt(c.info.type,c.info.u,c.info.range,c.info.N,c.info.B,c.info.startTime,c.info.duration,c.info.C+d,c.info.ob-d,c.info.F,c.info.D);c=new mv(c,e,!1);c=[f,c];a.u=c[1];return c[0]}; yx=function(a,b){b.u.getLength();var c=nv(b);if(!a.D.Dz&&xw(b.info.u.info)&&"bt2020"===b.info.u.info.Ka().primaries){var d=new Hu(c);Ju(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.u,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.u.info;ww(d)&&!xw(d)&&(d=nv(b),Pu(new Hu(d)),Ou([408125543,374648427,174,224],21936,d));b.info.u.info.isVideo()&&(d=b.info.u,d.info&&d.info.video&&4==d.info.video.projectionType&&!d.C&&(g.qv(d.info)?d.C=hfa(c):d.info.Qd()&&(d.C=jfa(c)))); b.info.u.info.Qd()&&b.info.isVideo()&&(c=nv(b),Pu(new Hu(c)),Ou([408125543,374648427,174,224],30320,c)&&Ou([408125543,374648427,174,224],21432,c));if(a.D.bj&&b.info.u.info.Qd()){c=nv(b);var e=new Hu(c);if(Ju(e,[408125543,374648427,174,29637])){d=Mu(e,!0);e=e.start+e.u;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=mu(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.u,e))}}if(b=a.ca&&!!a.ca.C.K)if(b=c.info.isVideo())b=wv(c),h=a.ca,Dx?(l=1/b,b=Ex(a,b)>=Ex(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a.C.jf()&&c.info.B==c.info.u.index.Rb()&& (b=a.ca,Dx?(l=wv(c),h=1/l,l=Ex(a,l),b=Ex(b)+h-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,uu(nv(c),b))}else{h=!1;a.K||(xv(c),c.B&&(a.K=c.B,h=!0,eu(c.info,c.B),e=c.info.u.info,d=nv(c),g.qv(e)?Eu(d,1701671783):e.Qd()&&Ou([408125543],307544935,d)));if(d=e=vv(c))d=c.info.u.info.Qd()&&160==kv(c.u,0);if(d)a.P+=e,a.I=l+e;else{if(a.D.Oz){if(l=f=a.Ha(rv(c),1),0<=a.I&&6!=c.info.type){f-=a.I;var n=f-a.la;d=c.info.B;var p=c.info.K,r=a.Y?a.Y.B:-1,t=a.Y?a.Y.K:-1,w=a.Y?a.Y.duration:-1;m=a.D.De&&f> a.D.De;var x=a.D.Sd&&n>a.D.Sd;1E-4m&&d>a.va)&&p&&(d=Math.max(.95,Math.min(1.05,(e-(x-f))/e)),uu(nv(c),d),d=vv(c),n=e-d,e=d)));a.la= f+n}}else isNaN(a.I)?f=c.info.startTime:f=a.I,l=f;tv(c,l)?(isNaN(a.ea)&&(a.ea=l),a.P+=e,a.I=l+e):(l=du(c.info),l.smst="1",a.V("error",l||{}))}if(h&&a.K){h=Fx(a,!0);fu(c.info,h);a.u&&fu(a.u.info,h);b=g.q(b.info.u);for(l=b.next();!l.done;l=b.next())fu(l.value,h);(c.info.D||a.u&&a.u.info.D)&&6!=c.info.type||(a.W=h,a.V("placeholderinfo",h),Gx(a))}}Bx(a,c);a.ka&&uv(c,a.ka);a.Y=c.info}; zx=function(a,b){if(b.info.D){a.Ca=b.info;if(a.K){var c=Fx(a,!1);a.V("segmentinfo",c);a.W||Gx(a);a.W=null}ux(a)}a.F&&ix(a.F,b);if(c=tx(a))if(c=pv(c,b,a.D.Zq)){a.B.pop();a.B.push(c);return}a.B.push(b)}; ux=function(a){a.u=null;a.X=-1;a.N=0;a.K=null;a.ea=NaN;a.P=0;a.W=null}; Bx=function(a,b){if(a.C.info.Ld){if(b.info.u.info.Qd()){var c=new Hu(nv(b));if(Ju(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Mu(c,!0);c=16!==d?null:Tu(c,d)}else c=null;d="webm"}else b.info.W=Ufa(nv(b)),c=Vfa(b.info.W),d="cenc";c&&c.length&&(c=new mx(c,d),c.Qd=b.info.u.info.Qd(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),a.D.gr&&b.B&&b.B.D&&(c.u=b.B.D),a.V("needkeyinfo",c))}}; Gx=function(a){var b=a.K,c;b.data["Cuepoint-Type"]?c=new Pt(Hx?Number(b.data["Cuepoint-Playhead-Time-Sec"])||0:-(Number(b.data["Cuepoint-Playhead-Time-Sec"])||0),Number(b.data["Cuepoint-Total-Duration-Sec"])||0,b.data["Cuepoint-Context"],b.data["Cuepoint-Identifier"]||"",Yfa[b.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(b.data["Cuepoint-Playhead-Time-Sec"])||0)):c=null;c&&(c.startSecs+=a.ea,a.V("cuepoint",c,b.u))}; Fx=function(a,b){var c=a.K;if(c.data["Stitched-Video-Id"]||c.data["Stitched-Video-Duration-Us"]||c.data["Stitched-Video-Start-Frame-Index"]||c.data["Serialized-State"]){var d=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var e=[];if(c.data["Stitched-Video-Duration-Us"])for(var f=g.q(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push((Number(h.value)||0)/1E6);e=[];if(c.data["Stitched-Video-Start-Frame-Index"])for(f= g.q(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push(Number(h.value)||0);d=new Wfa(d,c.data["Serialized-State"]?c.data["Serialized-State"]:"")}return new Mt(c.u,a.ea,b?c.Ug:a.P,c.ingestionTime,"sq/"+c.u,void 0,void 0,b,d)}; Ex=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.ka*b)/b:a.ka;a.C.K&&c&&(c+=a.C.K.u);return c+a.getDuration()}; Ix=function(a,b){0>b||(a.B.forEach(function(c){return uv(c,b)}),a.ka=b)}; Jx=function(a,b,c){var d=this;this.Gk=a;this.Yd=b;this.loaded=this.status=0;this.error="";a=Ut(this.Gk.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new bv;Zfa(this).then(c,function(e){d.error=""+e||"unknown_err";c()})}; Zfa=function(a){return Pe(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w,x,y,B;return xa(c,function(E){if(1==E.u){d.status=200;e=d.Gk.get("docid");f=id(d.Gk.get("fmtid")||"");h=+(d.Gk.get("csz")||0);if(!e||!f||!h)throw Error("Invalid local URL");l=d.range;m=Math.floor(l.start/h);n=Math.floor(l.end/h);p=m}if(5!=E.u)return p<=n?E=ra(E,Ifa(e,f,p),5):(E.u=0,E=void 0),E;r=E.B;if(void 0===r)throw Error("invariant: data is undefined");t=p*h;w=(p+1)*h;x=Math.max(0,l.start-t);y=Math.min(l.end+1,w)-(x+t);B= new Uint8Array(r.buffer,x,y);d.u.append(B);d.loaded+=y;d.loadedf?(a.C+=e,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=Zx(a)?d+b:d+Math.max(b,c);a.P=d}; Xx=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; by=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)}; cy=function(a){if(a.Zo())return!1;a=a.he("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a}; dy=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.method?"GET":h.method;var l=h.headers,m=h.body;h=void 0===h.credentials?"include":h.credentials;this.Y=b;this.X=c;this.ca=d;this.policy=e;this.status=0;this.response=void 0;this.W=!1;this.B=0;this.N=NaN;this.aborted=this.I=this.P=!1;this.errorMessage="";this.method=f;this.headers=l;this.body=m;this.credentials=h;this.u=new bv;this.id=dga++;this.D=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()}; fy=function(a){a.C.read().then(function(b){if(!a.ma()){var c;window.performance&&window.performance.now&&(c=window.performance.now());var d=Date.now(),e=b.value?b.value:void 0;a.F&&(a.u.append(a.F),a.F=void 0);b.done?(a.C=void 0,a.onDone()):(a.B+=e.length,ey(a)?a.u.append(e):a.F=e,a.Y(d,a.B,c),fy(a))}},function(b){a.onError(b)}).then(void 0,M)}; ey=function(a){var b=a.he("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.B&&a.policy.ff&&cy(a)&&b}; gy=function(a,b,c,d){var e=this;this.status=0;this.ma=this.B=!1;this.u=NaN;this.xhr=new XMLHttpRequest;this.xhr.open("GET",a);this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){2===e.xhr.readyState&&e.F()}; this.C=c;this.D=b;this.F=d;a=io(function(f){e.onDone(f)}); this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);this.xhr.send();this.xhr.addEventListener("progress",io(function(f){e.Yd(f)}),!1)}; iy=function(){this.C=this.u=0;this.B=Array.from({length:hy.length}).fill(0)}; jy=function(){}; ky=function(a){this.name=a;this.startTimeMs=(0,g.N)();this.u=!1}; ny=function(a,b){var c=this;return ly?function(d){for(var e=[],f=0;fb||(a in qy||(qy[a]=new iy),qy[a].qF(b,c))}; ry=function(a,b){var c="";49=d.getLength()&&(c=iv(d),c=hu(c),c=Ev(c)?c:"")}if(c){d=sy(a);(0,g.N)();d.started=0;d.B=0;d.u=0;d=a.info;var e=a.B;g.dw(d.B,e,c);d.requestId=e.get("req_id");return 4}c=b.vt();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.my())return a.Mg="net.closed",6;Ay(a,!0);if(a.u.pC&&!d&&a.ae&&(d=a.ae.u,d.length&&!ov(d[0])))return a.Mg= "net.closed",6;e=kx(a)?b.he("X-Bandwidth-Est"):0;if(d=kx(a)?b.he("X-Bandwidth-Est3"):0)a.DF=!0,a.u.Cz&&(e=d);d=a.timing;var f=e?parseInt(e,10):0;e=g.A();if(!d.ka){d.ka=!0;if(!d.Bi){e=e>d.u&&4E12>e?e:g.A();Yx(d,e,c);Vx(d,e,c);var h=Px(d);if(2===h&&f)Tx(d,d.B/f,d.B);else if(2===h||1===h)f=(e-d.u)/1E3,(f<=d.schedule.P.u||!d.schedule.P.u)&&!d.va&&Zx(d)&&Tx(d,f,c),Zx(d)&&By(d.schedule,c,d.C);Cy(d.schedule,(e-d.u)/1E3||.05,d.B,d.Y,d.Cg,d.Sl)}d.deactivate()}c=sy(a);(0,g.N)();c.started=0;c.B=0;c.u=0;a.info.B.B= 0;(0,g.N)()c.indexOf("googlevideo.com")||(iga({primary:c}),Dy=(0,g.N)());return 5}; ty=function(a){if("net.timeout"===a.Mg){var b=a.timing,c=g.A();if(!b.Bi){c=c>b.u&&4E12>c?c:g.A();Yx(b,c,1024*b.X);var d=(c-b.u)/1E3;2!==Px(b)&&(Zx(b)?(b.C+=(c-b.D)/1E3,By(b.schedule,b.B,b.C)):(Rx(b)||b.Bi||Sx(b.schedule,d),b.ca=c));Cy(b.schedule,d,b.B,b.Y,b.Cg,b.Sl);Ux(b.schedule,(c-b.D)/1E3,0)}}"net.nocontent"!=a.Mg&&("net.timeout"===a.Mg||"net.connect"===a.Mg?(b=sy(a),b.B+=1):(b=sy(a),b.u+=1),a.info.B.B++);lx(a,6)}; Ey=function(a){a.ma();var b=sy(a);return 100>b.B&&b.u=c)}; hga=function(a){var b=(0,g.z)(a.vP,a),c=(0,g.z)(a.xP,a),d=(0,g.z)(a.wP,a);if(Nv(a.B.fg))return new Jx(a.B,c,b);var e=a.B.Bd();return a.u.ca&&(a.u.Jz&&!isNaN(a.info.mf)&&a.info.mf>a.u.DG?0:by())?new dy(e,c,b,d,a.u.D):new gy(e,c,b,d)}; kga=function(a){a.ae&&a.ae.F?(a=a.ae.F,a=new Yt(a.type,a.u,a.range,"getEmptyStubAfter_"+a.N,a.B,a.startTime+a.duration,0,a.C+a.ob,0,!1)):(a=a.info.u[0],a=new Yt(a.type,a.u,a.range,"getEmptyStubBefore_"+a.N,a.B,a.startTime,0,a.C,0,!1));return a}; Hy=function(a){return 1>a.state?!1:a.ae&&a.ae.u.length||a.xb.sh()?!0:!1}; Iy=function(a){Ay(a,!1);return a.ae?a.ae.u:[]}; Ay=function(a,b){if(b||a.xb.Ql()&&a.xb.sh()&&!zy(a)&&!a.Kn){if(!a.ae){if(a.xb.Ui())a.info.range&&(c=a.info.range.length);else var c=a.xb.vt();a.ae=new Rfa(a.info.u,c)}for(;a.xb.sh();)a:{c=a.ae;var d=a.xb.wt(),e=b&&!a.xb.sh();c.D&&(dv(c.D,d),d=c.D,c.D=null);for(var f=0,h=0,l=g.q(c.B),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.ob<=c.C)f+=m.ob;else{d.getLength();if(Zt(m)&&!e&&c.C+d.getLength()-ha.info.u[0].B)return!1}return!0}; Jy=function(a,b){return{start:function(c){return a[c]}, end:function(c){return b[c]}, length:a.length}}; Ky=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c=b)return c}catch(d){}return-1}; My=function(a,b){return 0<=Ly(a,b)}; lga=function(a,b){if(!a)return NaN;var c=Ly(a,b);return 0<=c?a.start(c):NaN}; Ny=function(a,b){if(!a)return NaN;var c=Ly(a,b);return 0<=c?a.end(c):NaN}; Oy=function(a){return a&&a.length?a.end(a.length-1):NaN}; Py=function(a,b){var c=Ny(a,b);return 0<=c?c-b:0}; Qy=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return Jy(d,e)}; Ry=function(a,b,c){this.Y=a;this.u=b;this.D=[];this.C=new rx(a,b,c);this.B=this.K=null;this.ka=0;this.wb=b.info.wb;this.ea=0;this.N=b.mn();this.I=-1;this.la=b.mn();this.F=this.N;this.P=!1;this.X=-1;this.fa=null;this.ca=0;this.W=!1}; Sy=function(a,b){b&&Dx&&Ix(a.C,b.ww());a.K=b}; cz=function(a){return a.K&&a.K.ds()}; ez=function(a){for(;a.D.length&&5==a.D[0].state;){var b=a.D.shift();dz(a,b);b=b.timing;a.ka=(b.D-b.u)/1E3}a.D.length&&Hy(a.D[0])&&!a.D[0].info.Cg()&&dz(a,a.D[0])}; dz=function(a,b){if(Hy(b)){if(Iy(b).length){b.I=!0;var c=b.ae;var d=c.u;c.u=[];c.F=g.bb(d).info;c=d}else c=[];c=g.q(c);for(d=c.next();!d.done;d=c.next())fz(a,b,d.value)}}; fz=function(a,b,c){switch(c.info.type){case 1:case 2:wx(a.C,c);break;case 4:var d=c.info.u.RC(c);c=c.info;var e=a.B;e&&e.u==c.u&&e.type==c.type&&(c.range&&e.range?e.range.start==c.range.start&&e.range.end==c.range.end:e.range==c.range)&&e.B==c.B&&e.C==c.C&&e.ob==c.ob&&(a.B=g.bb(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())fz(a,b,c.value);break;case 3:Ax(a.C,b,c);break;case 6:Ax(a.C,b,c),a.B=c.info}}; gz=function(a,b){var c=b.info;c.u.info.wb>=a.wb&&(a.wb=c.u.info.wb)}; kz=function(a,b,c){c=void 0===c?!1:c;if(a.K){var d=a.K.Je(),e=Ny(d,b),f=NaN,h=cz(a);h&&(f=Ny(d,h.u.index.Pe(h.B)));if(e==f&&a.B&&a.B.ob&&hz(iz(a),0))return b}a=jz(a,b,c);return 0<=a?a:NaN}; mz=function(a,b){a.u.te();var c=jz(a,b);if(0<=c)return c;c=a.C;c.F?(c=c.F,c=c.B&&3==c.B.type?c.B.startTime:0):c=Infinity;b=Math.min(b,c);a.B=a.u.rj(b).u[0];lz(a)&&a.K&&a.K.abort();a.ea=0;return a.B.startTime}; nz=function(a){a.N=!0;a.F=!0;a.I=-1;mz(a,Infinity)}; oz=function(a){var b=0;g.Cb(a.D,function(c){var d=b;c=c.ae&&c.ae.length?Sfa(c.ae):iw(c.info);b=d+c},a); return b+=Xfa(a.C)}; pz=function(a,b){if(!a.K)return 0;var c=cz(a);if(c&&c.F)return c.I;c=a.K.Je(!0);return Py(c,b)}; rz=function(a){qz(a);a=a.C;a.B=[];ux(a)}; sz=function(a,b,c,d){qz(a);for(var e=a.C,f=!1,h=e.B.length-1;0<=h;h--){var l=e.B[h];l.info.B>=b&&(e.B.pop(),e.I-=vv(l),f=!0)}f&&(e.fa=0c?mz(a,d):a.B=a.u.Ok(b-1,!1).u[0]}; vz=function(a,b){var c;for(c=0;ce.C&&d.C+d.ob<=e.C+e.ob})?a.B=d:$t(b.info.u[0])?a.B=kga(b):a.B=null}}; lz=function(a){var b;!(b=!a.Y.Xq&&"f"===a.u.info.Eb)&&(b=a.Y.ih)&&(b=a.C,b=!!b.F&&gx(b.F));if(b)return!0;b=cz(a);if(!b)return!1;var c=b.F&&b.D;return a.la&&0=a.X:c}; iz=function(a){var b=[],c=cz(a);c&&b.push(c);b=g.qb(b,Cx(a.C));g.Cb(a.D,function(d){g.Cb(d.info.u,function(e){d.I&&(b=g.Fe(b,function(f){return!(f.u!=e.u?0:f.range&&e.range?f.range.start+f.C>=e.range.start+e.C&&f.range.start+f.C+f.ob<=e.range.start+e.C+e.ob:f.B==e.B&&f.C>=e.C&&(f.C+f.ob<=e.C+e.ob||e.D))})); ($t(e)||4==e.type)&&b.push(e)})}); a.B&&!dfa(a.B,g.bb(b),a.B.u.jf())&&b.push(a.B);return b}; hz=function(a,b){if(!a.length)return!1;for(var c=b+1;c=b){b=f;break a}}b=e}return 0>b?NaN:hz(a,c?b:0)?a[b].startTime:NaN}; wz=function(a){return bi(a.D,function(b){return 3<=b.state})}; xz=function(a){return!(!a.B||a.B.u==a.u)}; yz=function(a){return xz(a)&&a.u.te()&&a.B.u.info.wbb&&a.I=l)if(l=e.shift(),h=(h=m.exec(l))?+h[1]/1E3:0)l=(l=n.exec(l))?+l[1]:0,l+=1; else return;c.push(new Mt(p,f,h,NaN,"sq/"+(p+1)));f+=h;l--}a.index.append(c)}}; Aga=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=zp(b||"");var c={};g.Cb(this.experimentIds,function(d){c[d]=!0}); this.experiments=c}; g.Q=function(a,b){return"true"===a.flags[b]}; g.P=function(a,b){return Number(a.flags[b])||0}; g.dA=function(a,b){var c=a.flags[b];return c?c.toString():""}; Bga=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d}; eA=function(a,b,c){this.name=a;this.id=b;this.isDefault=c}; fA=function(){var a=g.Ja("yt.player.utils.videoElement_");a||(a=g.Ae("VIDEO"),g.Fa("yt.player.utils.videoElement_",a,void 0));return a}; gA=function(a){var b=fA();return!!(b&&b.canPlayType&&b.canPlayType(a))}; Cga=function(a){try{var b=hA('video/mp4; codecs="avc1.42001E"')||hA('video/webm; codecs="vp9"');return(hA('audio/mp4; codecs="mp4a.40.2"')||hA('audio/webm; codecs="opus"'))&&(b||!a)||gA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}}; hA=function(a){if(/opus/.test(a)&&(g.iA&&!vn("38")||g.iA&&ar("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!gr())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!gA(a)}; jA=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled}; kA=function(){var a=fA();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode}; lA=function(){var a=fA();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1}; mA=function(a,b,c,d){g.O.call(this);var e=this;this.Ic=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.NB={error:function(){!e.ma()&&e.isActive&&e.V("error",e)}, updateend:function(){!e.ma()&&e.isActive&&e.V("updateend",e)}}; Is(this.Ic,this.NB);this.Nq=this.isActive}; nA=function(a,b,c){this.errorCode=a;this.u=b;this.details=c||{}}; g.oA=function(a){var b;for(b in a)if(a.hasOwnProperty(b)){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""}; pA=function(a){var b=void 0===b?!1:b;if(a instanceof nA)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Tr(a):g.Ur(a);return new nA(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})}; qA=function(a,b,c,d,e){var f;g.O.call(this);var h=this;this.Yb=a;this.Rd=b;this.id=c;this.containerType=d;this.isVideo=e;this.rC=this.Qs=this.jx=null;this.appendWindowStart=this.timestampOffset=0;this.mA=Jy([],[]);this.sr=!1;this.vj=function(l){return h.V(l.type,h)}; if(null===(f=this.Yb)||void 0===f?0:f.addEventListener)this.Yb.addEventListener("updateend",this.vj),this.Yb.addEventListener("error",this.vj)}; rA=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; sA=function(a,b){this.u=a;this.B=void 0===b?!1:b;this.C=!1}; tA=function(a,b,c){c=void 0===c?!1:c;g.C.call(this);this.mediaSource=a;this.Rd=b;this.isView=c;this.C=0;this.callback=null;this.events=new Fs(this);g.D(this,this.events);this.Cp=new sA(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Rd.webkitMediaSourceURL,!0);a=this.mediaSource||this.Rd;Gs(this.events,a,["sourceopen","webkitsourceopen"],this.F);Gs(this.events,a,["sourceclose","webkitsourceclose"],this.D)}; Dga=function(a,b){uA(a)?g.$l(function(){return b(a)}):a.callback=b}; vA=function(a,b){try{a.mediaSource?a.mediaSource.duration=b:(a.C=b,a.Rd.webkitSourceSetDuration(b))}catch(c){}}; wA=function(a){return!!a.u||!!a.B}; uA=function(a){try{return"open"===xA(a)}catch(b){return!1}}; yA=function(a){try{return"closed"===xA(a)}catch(b){return!0}}; xA=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Rd.webkitSourceState){case a.Rd.SOURCE_OPEN:return"open";case a.Rd.SOURCE_ENDED:return"ended";default:return"closed"}}; zA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; AA=function(a,b,c,d){if(!a.u||!a.B)return null;var e=a.u.isView()?a.u.Ic:a.u,f=a.B.isView()?a.B.Ic:a.B,h=new tA(a.mediaSource,a.Rd,!0);h.Cp=a.Cp;e=new mA(e,b,c,d);b=new mA(f,b,c,d);h.u=e;h.B=b;g.D(h,e);g.D(h,b);uA(a)||a.u.Yn(a.u.tc());return h}; Ega=function(a,b){return BA(function(c,d){return g.hs(c,d,4,1E3)},a,b)}; g.CA=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=hu(new Uint8Array(a.response))):b=a.responseText;return!b||2048=a.K}; RA=function(a){var b=a.K;isFinite(b)&&(QA(a)?a.refresh():(b=Math.max(0,a.X+b-(0,g.N)()),a.D||(a.D=new g.F(a.refresh,b,a),g.D(a,a.D)),a.D.start(b)))}; Qga=function(a){a=a.u;for(var b in a){var c=a[b].index;if(c.Lc())return c.Rb()+1}return 0}; SA=function(a){return a.Yl&&a.B?a.Yl-a.B:0}; TA=function(a){if(!isNaN(a.W))return a.W;var b=a.u,c;for(c in b){var d=b[c].index;if(d.Lc()){b=0;for(c=d.nh();c<=d.Rb();c++)b+=d.getDuration(c);b/=d.dn();b=.5*Math.round(b/.5);d.dn()>a.ka&&(a.W=b);return b}if(a.isLive&&(d=b[c],d.Ug))return d.Ug}return NaN}; Rga=function(a,b){var c=Rb(a.u,function(e){return e.index.Lc()}); if(!c)return NaN;c=c.index;var d=c.oh(b);return c.Pe(d)==b?b:d=c||(c=new Pt(a.u.re.startSecs-(a.N.Ub&&!isNaN(a.I)?a.I:0),c,a.u.re.context,a.u.re.identifier,"stop",a.u.re.u+1E3*b.duration),a.V("ctmp","cuepointdiscontinuity","segNum."+b.nb,!1),a.X(c,b.nb))}}; WA=function(a,b){a.C=null;a.K=!1;0=f&&a.Da.I?(a.I++,$A(a,"iterativeSeeking","inprogress;count."+a.I+";target."+ a.D+";actual."+f+";duration."+h+";isVideo."+c,!1),a.seek(a.D)):($A(a,"iterativeSeeking","incomplete;count."+a.I+";target."+a.D+";actual."+f,!1),a.I=0,a.B.F=!1,a.u.F=!1,a.V("seekplayerrequired",f+.1,!0)))}})}; Wga=function(a,b,c){if(!a.C)return-1;c=(c?a.B:a.u).u.index;var d=c.oh(a.D);return(Vz(c,a.F.ge)||b.nb==a.F.ge)&&d1E5*Math.random()&&(c=new g.Gq("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Ur(c)),!0):!1}; vB=function(a){return!!g.L("FORCE_CSI_ON_GEL",!1)||g.Zn("csi_on_gel")||!!jB(a).useGel}; wB=function(a){a=jB(a);if(!("gel"in a))a.gel={gelTicks:{},gelInfos:{}};else if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}return a.gel}; xB=function(a){iB(a);$ga();hB(!1,a);a||(g.L("TIMING_ACTION")&&Wn("PREVIOUS_ACTION",g.L("TIMING_ACTION")),Wn("TIMING_ACTION",""))}; DB=function(a,b,c,d){d=d?d:a;yB(d);var e=d||"",f=pB();f[e]&&delete f[e];var h=oB(),l={timerName:e,info:{},tick:{},span:{}};h.push(l);f[e]=l;qB(d||"").info.actionType=a;xB(d);jB(d).useGel=!0;Wn(d+"TIMING_AFT_KEYS",b);Wn(d+"TIMING_ACTION",a);zB("yt_sts","c",d);AB("_start",c,d);if(vB(d)){a={actionType:BB[Xn((d||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:BB[Xn("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"};if(b=g.dt())a.clientScreenNonce=b;b=lB(d);sB().info(a,b)}g.Fa("ytglobal.timing"+ (d||"")+"ready_",!0,void 0);CB(d)}; zB=function(a,b,c){if(null!==b)if(kB(c)[a]=b,vB(c)){var d=b;b=wB(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}if(a in EB){b=EB[a];g.ib(aha,b)&&(d=!!d);a in FB&&"string"===typeof d&&(d=FB[a]+d.toUpperCase());a=d;d=b.split(".");for(var h=e={},l=0;l=navigator.hardwareConcurrency&&(d=e);(e=g.P(a.experiments,"html5_av1_thresh_hcc"))&&4=c)}; pC=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.u=b||null;this.B=c||null;if(this.u)for(a=new Set,b=g.q(this.u),c=b.next();!c.done;c=b.next())if(c=c.value,c.u&&!a.has(c.u.id)){var d=new iC(c.id,c.u);a.add(c.u.id);this.audioTracks.push(d)}}; rC=function(a,b,c,d){var e=[],f={};if(FA(c)){for(var h in c.u)d=c.u[h],f[d.info.Eb]=[d.info];return f}for(var l in c.u){h=c.u[l];var m=h.info.Tb();if(""==h.info.Eb)e.push(m),e.push("unkn");else if("304"!=m&&"266"!=m||!a.ca)if(a.ea&&"h"==h.info.Eb&&h.info.video&&1080x}; a.u&&e("lth."+w+".uth."+x);n=n.filter(function(B){return y(B.Ka().yc)}); p=p.filter(function(B){return!y(B.Ka().yc)})}t=["1", m];r=[].concat(n,p).filter(function(B){return B})}if(r.length&&!a.C){uC(r,d,t); if(a.u){a=[];m=g.q(r);for(c=m.next();!c.done;c=m.next())a.push(c.value.Tb());e("hbdfmt."+a.join("."))}return ks(new pC(r,d,vC(l,"",b)))}r=eha(a);r=g.db(r,h);if(!r)return a.u&&e("novideo"),js();a.Aa&&"1"==r&&l[m]&&(c=tC(l["1"]),tC(l[m])>c&&(r=m));"9"==r&&l.h&&(m=tC(l["9"]),tC(l.h)>1.5*m&&(r="h"));a.u&&e("vfmly."+sC(r));m=l[r];if(!m.length)return a.u&&e("novfmly."+sC(r)),js();uC(m,d);return ks(new pC(m,d,vC(l,r,b)))}; vC=function(a,b,c){var d=a.h;"f"==b&&(d=a[b]);var e=a.a;b=a[b]!=d;a=a[c]!=e;return d&&e&&(b||a)?(uC(d,e),new pC(d,e)):null}; uC=function(a,b,c){c=void 0===c?[]:c;g.zb(a,function(d,e){var f=e.Ka().height*e.Ka().width-d.Ka().height*d.Ka().width;if(!f&&c&&0c&&(b=a.I&&(a.W||OB(a,PB.FRAMERATE))?g.Fe(b,function(d){return 32Number(f.get("dhmu",h.toString())));this.er=h;this.Qa="3"===this.controlsType||this.u||R(!1,a.use_media_volume); this.W=lA();this.Ms=g.NC;this.Zi=R(!1,b&&e?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=R(!1,(b&&e?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.aa("embeds_pfp_chazal_ui_killswitch"));var m;b?void 0!==b.hideInfo&&(m=!b.hideInfo):m=a.showinfo;this.Gm=g.OC(this)&&!this.Zi||R(!PC(this)&&!QC(this)&&!this.I,m);this.aj=b?!!b.mobileIphoneSupportsInlinePlayback:R(!1,a.playsinline);m=this.u&&RC&&null!=SC&&0=SC;h=b?b.useNativeControls:a.use_native_controls;f=this.u&&!this.aa("embeds_enable_mobile_custom_controls"); h=TC(this)||!m&&R(f,h)?"3":"1";f=b?b.controlsType:a.controls;this.controlsType="0"!==f&&0!==f?h:"0";this.Hd=this.u;this.color=EC("red",b&&e?b.progressBarColor:a.color,vha);this.Mr="3"===this.controlsType||R(!1,b&&e?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Aa=!this.B;this.Hm=(h=!this.Aa&&!QC(this)&&!this.N&&!this.I&&!PC(this))&&!this.Mr&&"1"===this.controlsType;this.jb=g.UC(this)&&h&&"0"===this.controlsType&&!this.Hm;this.Qt=this.Xr=m;this.Im=VC&&!g.Ud(601)?!1:!0;this.dr= this.B||!1;this.Pa=QC(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=GC("",b&&e?b.widgetReferrer:a.widget_referrer);var n;b&&e?b.disableCastApi&&(n=!1):n=a.enablecastapi;n=!this.C||R(!0,n);m=!0;b&&b.disableMdxCast&&(m=!1);this.Ee=n&&m&&"1"===this.controlsType&&!this.u&&(QC(this)||g.UC(this)||g.WC(this))&&!g.XC(this)&&!YC(this);this.Pt=jA()||kA();n=b?!!b.supportsAutoplayOverride:R(!1,a.autoplayoverride);this.dg=!this.u&&!ar("nintendo wiiu")&&!ar("nintendo 3ds")|| n;n=b?!!b.enableMutedAutoplay:R(!1,a.mutedautoplay);m=this.aa("embeds_enable_muted_autoplay")&&g.OC(this);this.eg=n&&m&&this.W&&!TC(this);n=(QC(this)||PC(this))&&"blazer"===this.playerStyle;this.Fe=b?!!b.disableFullscreen:!R(!0,a.fs);this.la=!this.Fe&&(n||Bs());this.Xi=this.aa("uniplayer_block_pip")&&(br()&&vn(58)&&!or()||lr);n=g.OC(this)&&!this.Zi;var p;b?void 0!==b.disableRelatedVideos&&(p=!b.disableRelatedVideos):p=a.rel;this.Xa=n||R(!this.I,p);this.cj=R(!1,b&&e?b.enableContentOwnerRelatedVideos: a.co_rel);this.F=or()&&0=SC?"_top":"_blank";this.yd=g.WC(this);this.Mf=R("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":p="bl";break;case "gmail":p="gm";break;case "books":p="gb";break;case "docs":p="gd";break;case "duo":p="gu";break;case "google-live":p="gl";break;case "google-one":p="go";break;case "play":p="gp";break;case "chat":p="hc";break;case "hangouts-meet":p="hm";break;case "photos-edu":case "picasaweb":p="pw";break;default:p= "yt"}this.X=p;this.ne=GC("",b&&e?b.authorizedUserIndex:a.authuser);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.fl=(this.B&&!this.ka||!!this.ne)&&R(!this.N,this.C?r:void 0);this.De=b?!!b.disableKeyboardControls:R(!1,a.disablekb);this.loop=R(!1,a.loop);this.pageId=GC("",a.pageid);this.Ns=R(!0,a.canplaylive);this.Ai=R(!1,a.livemonitor);this.disableSharing=R(this.I,b?b.disableSharing:a.ss);(r=a.video_container_override)?(p=r.split("x"),2!==p.length?r=null:(r= Number(p[0]),p=Number(p[1]),r=isNaN(r)||isNaN(p)||0>=r*p?null:new g.ce(r,p))):r=null;this.Jm=r;this.mute=b?!!b.startMuted:R(!1,a.mute);this.cg=!this.mute&&R("0"!==this.controlsType,a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:EC(void 0,r,ZC);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":GC("",a.cc_lang_pref);r=EC(2,b&&e?b.captionsLanguageLoadPolicy:a.cc_load_policy,ZC);"3"===this.controlsType&&2===r&&(r= 3);this.gj=r;this.hf=b?b.hl||"en_US":GC("en_US",a.hl);this.region=b?b.contentRegion||"US":GC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":GC("en",a.host_language);this.Wq=!this.ka&&Math.random()Math.random();this.Lf=a.onesie_hot_config?new oha(a.onesie_hot_config):void 0;this.isTectonic=!!a.isTectonic;this.Fs=c;this.lc=new AC;g.D(this,this.lc)}; hD=function(a,b){return!a.I&&br()&&vn(55)&&"3"===a.controlsType&&!b}; g.iD=function(a){a=$C(a.P);return"www.youtube-nocookie.com"===a?"www.youtube.com":a}; g.jD=function(a){return g.XC(a)?"music.youtube.com":g.iD(a)}; kD=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")}; lD=function(a){return QC(a)&&!g.dD(a)}; TC=function(a){return VC&&!a.aj||ar("nintendo wiiu")||ar("nintendo 3ds")?!0:!1}; YC=function(a){return"area120-boutique"===a.playerStyle}; g.XC=function(a){return"music-embed"===a.playerStyle}; g.cD=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform}; JC=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c}; bD=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel}; g.mD=function(){return 1b)return!0;return!1}; ID=function(a,b){return new wC(a.W,a.B,b||a.F.reason)}; JD=function(a){return a.F.isLocked()}; Dha=function(a){return 0(0,g.N)()-a.Y,c=a.D&&3*FD(a,a.D.info)a.u.Ha,m=f<=a.u.Ha?yw(e):ww(e);if(!h||l||m)c[f]=e}return c}; BD=function(a,b){a.F=b;var c=a.N.videoInfos;if(!JD(a)){var d=(0,g.N)()-6E4;c=g.Fe(c,function(p){if(p.wb>this.u.wb)return!1;p=this.K.u[p.id];var r=p.info.Eb;return this.u.mr&&this.va.has(r)||p.W>d?!1:4b.u)&&(e=e.filter(function(p){return!!p&&!!p.video&&!!p.B})); if(!rA()&&0n.video.width?(g.nb(e,c),c--):FD(a,f)*a.u.u>FD(a,n)&&(g.nb(e,c-1),c--)}c=e[e.length-1];a.Aa=!!a.B&&!!a.B.info&&a.B.info.Eb!=c.Eb;a.C=e;ufa(a.u,c)}; yha=function(a,b){if(b)a.I=a.K.u[b];else{var c=g.db(a.N.u,function(d){return!!d.u&&d.u.isDefault}); c=c||a.N.u[0];a.I=a.K.u[c.id]}DD(a)}; ND=function(a,b){for(var c=0;c+1d}; DD=function(a){if(!a.I||!a.u.C&&!a.u.cj)if(!a.I||!a.I.info.u)if(a.I=a.K.u[a.N.u[0].id],1a.F.u:ND(a,a.I);b&&(a.I=a.K.u[g.bb(a.N.u).id])}}; ED=function(a){a.u.eg&&(a.la=a.la||new g.F(function(){a.u.eg&&a.B&&!HD(a)&&1===Math.floor(10*Math.random())?GD(a,a.B):a.la.start()},6E4),a.la.Lb()); if(!a.D||!a.u.C&&!a.u.cj)if(JD(a))a.D=360>=a.F.u?a.K.u[a.C[0].id]:a.K.u[g.bb(a.C).id];else{for(var b=Math.min(a.P,a.C.length-1),c=Qz(a.ka),d=FD(a,a.I.info),e=c/a.u.B-d;0=c);b++);a.D=a.K.u[a.C[b].id];a.P=b}}; zha=function(a){var b=a.u.B,c=Qz(a.ka)/b-FD(a,a.I.info);b=g.fb(a.C,function(d){return FD(this,d)b&&(b=0);a.P=b;a.D=a.K.u[a.C[b].id]}; OD=function(a,b){a.u.Ha=SB(b,{},a.N);BD(a,a.F);KD(a);a.X=a.D!=a.B}; FD=function(a,b){if(!a.ea[b.id]){var c=a.K.u[b.id].index.vB(a.fa,15);c=b.C&&a.B&&a.B.index.Lc()?c||b.C:c||b.wb;a.ea[b.id]=c}c=a.ea[b.id];a.u.jb&&b.video&&b.video.yc>a.u.jb&&(c*=1.5);return c}; Eha=function(a,b){var c=Rb(a.K.u,function(d){return d.info.Tb()==b}); if(!c)throw Error("Itag "+b+" from server not known.");return c}; Fha=function(a){var b=[];if("m"==a.F.reason||"s"==a.F.reason)return b;var c=!1;if(Iga(a.K)){for(var d=Math.max(0,a.P-2);d=c)a.W=NaN;else{var d=Kz(a.fa),e=b.index.u;c=Math.max(1,d/c);a.W=Math.round(1E3*Math.max(((c-1)*e+a.u.N)/c,e-a.u.Sb))}}}; Jha=function(a,b){var c=g.A()/1E3,d=c-a.I,e=c-a.N,f=e>=a.u.Gm,h=!1;if(f){var l=0;!isNaN(b)&&b>a.K&&(l=b-a.K,a.K=b);l/e=a.u.Sb&&!a.D;if(!f&&!c&&TD(a,b))return NaN;c&&(a.D=!0);a:{d=h;c=g.A()/1E3-(a.ca.u()||0)-a.P.B-a.u.N;f=a.C.startTime;c=f+c;if(d){if(isNaN(b)){UD(a,NaN,"n",b);f=NaN;break a}d=b-a.u.Ib;db)return!0;var c=a.Rb();return bb)return 1;c=a.Rb();return bc)break}return d}; eE=function(a,b){for(var c=[],d=g.q(a.u),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c}; Pha=function(a){return a.u.slice(dE(a,0x7ffffffffffff),a.u.length)}; dE=function(a,b){var c=yb(a.u,function(d){return b-d.start||1}); return 0>c?-(c+1):c}; fE=function(a,b){for(var c=NaN,d=g.q(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(isNaN(c)||e.endb&&(isNaN(c)||e.starta.u.length)a.u=a.u.concat(b),a.u.sort(a.B);else for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,!a.u.length||0=a.u.xG&&!a.u.Ab||!a.u.yz&&0=a.u.FG)return!1;d=b.B;if(!d)return!0;if(!cw(d.u.B))return!1; 4==d.type&&d.u.te()&&(b.B=g.bb(d.u.pu(d)),d=b.B);if(!d.F&&!d.u.Jj(d))return!1;var e=a.F.Df||a.F.I;if(a.F.isManifestless&&e){e=b.u.index.Rb();var f=c.u.index.Rb();e=Math.min(e,f);if(0=e)return b.X=e,c.X=e,!1}if(d.u.info.audio&&4==d.type)return!1;if(yz(b)&&!a.u.ka)return!0;if(d.F||oz(b)&&oz(b)+oz(c)>a.u.Ca)return!1;e=!b.F&&!c.F;f=b==a.B&&a.fa;if(!(c=!!(c.B&&!c.B.F&&c.B.Ia}return c?!1:(b=b.K)&&b.isLocked()?!1:!0}; BE=function(a,b,c){if(zE(a,b,c))if(c=Uha(a,b,c),a.u.Pz&&a.F.isManifestless&&!b.N&&0>c.u[0].B)a.Rc("invalidsq",Xt(c.u[0]));else{if(a.Xa){var d=a.N;var e=c.u[0].B;d=0>e&&!isNaN(d.D)?d.D:e;e=a.N;var f=0>d&&!isNaN(e.F)?e.F:c.u[0].K;if(e=Vha(a.Xa.u,f,d,c.u[0].u.info.id))d="decurl_itag_"+c.u[0].u.info.Tb()+"_sg_"+d+"_st_"+f.toFixed(3)+".",a.Rc("sdai",d),c.F=e}a.u.er&&-1!=c.u[0].B&&c.u[0].Bd.B&&(c=du(d),c.pr=""+b.D.length,a.W.C&&(c.sk="1"),a.Rc("nosq",d.N+";"+g.oA(c))),d=h.qk(d));a.fa&&d.u.forEach(function(l){l.type=6}); return d}; Wha=function(a,b,c){if(!xz(b)||!b.u.te())return!1;var d=Math.min(15,.5*yE(a,b,!0));return yz(b)||c<=d||a.K.X}; Xha=function(a,b,c){b=a.u.gm(a,b);if(b.range&&1d&&(b=a.u.gm(a,b.range.length-c.ob))}return b}; Yha=function(a,b){var c=iw(b),d=a.Y,e=Math.min(2.5,Iz(d.B));d=Pz(d);var f=Zt(b.u[0]),h=Nv(b.B.u),l=a.u.ih,m;a.fc?m={Cg:f,Bi:h,Sl:l,Fi:a.fc,nb:b.u[0].B,mf:b.mf}:m={Cg:f,Bi:h,Sl:l};return new Lx(a.ca,c,c-e*d,m)}; AE=function(a,b){$t(b.u[b.u.length-1])&&DE(a,Cha(a.K,b.u[0].u));var c=Yha(a,b);a.u.AF&&(c.F=[]);var d={ul:Math.max(0,b.u[0].K-a.I)};a.u.Kf&&gw(b)&&b.u[0].u.info.video&&(d.LE=Fha(a.K));a.fa&&(d.Aq=!0);return new uy(a.u,b,c,a.Aa,function(e){a:{var f=e.info.u[0].u,h=f.info.video?a.B:a.D;if(!(2<=e.state)||4<=e.state||!e.xb.Ui()||e.Qj||!(!a.C||a.ka||3f.D&&(f.D=NaN,f.F=NaN),f.u&&f.u.nb===h.u[0].B)if(m=f.u.re.event,"start"===m||"continue"===m){if(1===f.B||5===f.B)f.D=h.u[0].B,f.F=h.u[0].K,f.B=2,f.V("ctmp","sdai","joinad_sg_"+ f.D+"_st_"+f.F.toFixed(3),!1),Zha(l.u,f.u.re)}else f.B=5;else 1===f.B&&(f.B=5)}else if(a.u.ca&&Hy(e)&&!(4<=e.state)&&!FE(a,e)&&!e.isFailed()){e=void 0;break a}e.isFailed()&&(f=e.info.u[0].u,h=e.Mg,Nv(f.B.u)&&(l=g.kf(e.xb.em()||""),a.Rc("dldbrerr",l||"none")),Ey(e)?(l=(f.info.video&&1(0,g.N)()||(e=jw(e.info,!1,a.u.cg))&&AE(a,e))}}}e=void 0}return e},d)}; DE=function(a,b){b&&a.V("videoformatchange",b);a.u.TF&&a.K.Ca&&a.V("audioformatchange",ID(a.K,"a"))}; FE=function(a,b){var c=b.info.u[0].u,d=c.info.video?a.B:a.D;$ha(a,d,b);b.info.Cg()&&!fw(b.info)&&(g.Cb(Iy(b),function(e){wx(d.C,e)}),a.V("metadata",c)); ez(d);return!!sx(d.C)}; $ha=function(a,b,c){if(a.F.isManifestless&&b){b.N&&(c.ma(),4<=c.state||c.xb.Ui()||Hy(c),b.N=!1);c.mw()&&a.Qa.C(1,c.mw());b=c.rD();c=c.rB();a=a.F;for(var d in a.u){var e=a.u[d].index;e.B&&(b&&(e.D=Math.max(e.D,b)),c&&(e.F=Math.max(e.F,c)))}}}; GE=function(a){a.Hd.Lb()}; JE=function(a){var b=a.C.u,c=a.C.B;if(aia(a)){if(a.u.Wq){if(!b.Hl()){var d=sx(a.D.C);d&&HE(a,b,d)}c.Hl()||(b=sx(a.B.C))&&HE(a,c,b)}a.Ca||(a.Ca=(0,g.N)())}else{if(a.Ca){d=(0,g.N)()-a.Ca;var e=pz(a.D,a.I),f=pz(a.B,a.I);a.Rc("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.Ca=0}if(a.P){d=a.P;e=a.D;f=Oy(a.C.B.Je());if(d.F)d=Jha(d,f);else{if(f=sx(e.C)){var h=f.B;h&&h.C&&h.B&&(e=e.D.length?e.D[0]:null)&&2<=e.state&&!e.isFailed()&&0==e.info.mf&&e.xb.Ui()&&(d.F= e,d.P=h,d.C=f.info,d.I=g.A()/1E3,d.N=d.I,d.K=d.C.startTime)}d=NaN}d&&a.V("seekplayerrequired",d,!0)}d=!1;IE(a,a.B,c)&&(d=!0,e=a.va,e.C||(e.C=g.A(),e.df("vda"),KB("vda","video_to_ad"),e.B&&ap(4)));if(a.C&&!yA(a.C)&&(IE(a,a.D,b)&&(d=a.va,d.B||(d.B=g.A(),d.df("ada"),KB("ada","video_to_ad"),d.C&&ap(4)),d=!0),!a.ma()&&a.C)){!a.u.Y&&lz(a.B)&&lz(a.D)&&uA(a.C)&&!a.C.Ef()&&(e=cz(a.D).u,e==a.F.u[e.info.id]&&(e=a.C,uA(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Rd.webkitSourceEndOfStream(e.Rd.EOS_NO_ERROR)), Hz(a.ca)));e=a.u.OG;f=a.u.aB;d||!(0c*(10-e)/Qz(b)}(b=!b)||(b=a.B,b=0a.I||360(e?e.B:-1);e=!!f}if(e)return!1;e=d.info;f=cz(b);!f||f.D||au(f,e)||c.abort();!c.ep()||rA()?c.fz(e.u.info.containerType,e.u.info.mimeType):e.u.info.containerType!=c.ep()&&a.Rc("ctu","ct."+rA()+";prev_c."+c.ep()+";curr_c."+e.u.info.containerType);f=e.u.K;a.u.Xr&&f&&(e=0+f.duration,f=-f.u,0==c.Yr()&&e==c.lw()||c.Ay(0,e),f!=c.tc()&&(c.Yn(f), Dx&&Ix(a.D.C,c.ww())));if(a.F.C&&0==d.info.C&&(g.qv(d.info.u.info)||a.u.wC)){if(null==c.Hl()){e=cz(b);if(!(f=!e||e.u!=d.info.u)){b:if(e=e.W,f=d.info.W,e.length!==f.length)e=!1;else{for(var h=0;he)){a:if(a.u.Hd&&(!d.info.C||d.info.D)&&a.Rc("sba",c.qb({as:Xt(d.info)})),e=d.C?d.info.u.u:null,f=iv(d.u),d.C&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=KE(a,c,f,d.info,e),"s"==e)a.Ib=0,a=!0;else{a.u.Gr||(LE(a,b),c.abort(),rz(b));if("i"==e||"x"==e)ME(a,"checked",e,d.info);else{if("q"== e&&(d.info.isVideo()?(e=a.u,e.I=Math.floor(.8*e.I),e.W=Math.floor(.8*e.W),e.F=Math.floor(.8*e.F)):(e=a.u,e.K=Math.floor(.8*e.K),e.Aa=Math.floor(.8*e.Aa),e.F=Math.floor(.8*e.F)),!c.Ef()&&!a.C.isView&&c.Jq(Math.min(a.I,d.info.startTime),!0,5))){a=!1;break a}a.V("reattachrequired")}a=!1}e=!a}if(e)return!1;b.C.B.shift();gz(b,d);return!0}; ME=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"==c||"m"==c?(e="fmt.unparseable",d.u.F=e,d.u.info.video&&!HD(a.K)&&GD(a.K,d.u)):"i"==c&&(15>a.Ib?(a.Ib++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=du(d);d.mrs=xA(a.C);d.origin=b;d.reason=c;wE(a,f,e,d)}; NE=function(a,b,c){var d=a.F,e=!1,f;for(f in d.u){var h=Aw(d.u[f].info.mimeType)||d.u[f].info.isVideo();c==h&&(h=d.u[f].index,Vz(h,b.nb)||(h.qD(b),e=!0))}Xga(a.W,b,c,e);c&&(a=a.N,a.N.Qa&&(c=a.u&&a.C&&a.u.nb==a.C.nb-1,c=a.u&&c&&"stop"!=a.u.re.event&&"predictStart"!=a.u.re.event,a.C&&a.C.nbc&&a.Rc("bwcapped","1",!0), c=Math.max(c,15),d=Math.min(d,c));return d}; Tha=function(a){if(!a.Sc)return Infinity;var b=g.Fe(jE(a.Sc),function(d){return"ad"==d.namespace}); b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.I)return c.start/1E3;return Infinity}; bia=function(a,b){if(a.C&&a.C.B){b-=!isNaN(a.ea)&&a.u.Ub?a.ea:0;a.I!=b&&a.resume();if(a.W.C&&!yA(a.C)){var c=a.I<=b&&b=b&&pE(a,d.startTime,!1)}); return c&&c.startTimee.length||(e[0]in gF&&(h.clientName=gF[e[0]]),e[1]in hF&&(h.platform=hF[e[1]]),h.applicationState=l,h.clientVersion=2Math.random())b=b||null,c=c||null,a=a instanceof Error?a:new g.Gq(a),d.category="H5 Ads Control Flow",b&&(d.slot=b?"slot: "+b.Za:""),c&&(d.layout=zF(c)),e&&(d.known_error_aggressively_sampled=!0),Zr(a,d),g.Ur(a)}; sF=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Qg:new tn(-0x8000000000000,-0x8000000000000),fu:d},null!=c&&(d.Xm=new tn(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Qg:new tn(0x7ffffffffffff,0x8000000000000),fu:d},null!=c&&(d.Xm=new tn(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||S("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||S("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new rF("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Qg:new tn(a,e),fu:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Xm=new tn(a,e)}return d;default:return new rF("AdPlacementKind not supported in convertToRange.", {kind:e,adPlacementConfig:a})}}; BF=function(a,b,c,d,e,f){g.C.call(this);this.rb=a;this.pc=b;this.dv=c;this.za=d;this.u=e;this.Ba=f}; wia=function(a,b,c){var d=[];a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.renderer.invideoOverlayAdRenderer||e.renderer.adBreakServiceRenderer&&uF(e);"AD_PLACEMENT_KIND_MILLISECONDS"===e.config.adPlacementConfig.kind&&f&&(f=sF(e.config.adPlacementConfig,0x7ffffffffffff),f instanceof rF||d.push({range:f.Qg,renderer:e.renderer.invideoOverlayAdRenderer?"overlay":"ABSR"}))}d.sort(function(h,l){return h.range.start-l.range.start}); a=!1;for(e=0;ed[e+1].range.start){a=!0;break}a&&(d=d.map(function(h){return h.renderer+"|s:"+h.range.start+("|e:"+h.range.end)}).join(","),S("Conflicting renderers.",void 0,void 0,{detail:d, cpn:b,videoId:c}))}; CF=function(a,b,c,d){this.C=a;this.re=null;this.B=b;this.u=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.D=void 0===d?!1:d}; DF=function(a,b,c,d,e){g.ZD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.u=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null}; EF=function(a){return"AD_PLACEMENT_KIND_START"==a.u}; FF=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u}; xia=function(a){return a.end-a.start}; GF=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new tn(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new tn(Math.max(0,b.C-b.u),0x7ffffffffffff):new tn(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.C);if(c&&(d=a,a=Math.max(0,a-b.u),a==d))break;return new tn(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d= b.re;a=1E3*d.startSecs;if(c){if(ar.width*r.height*r.fps)r=y}}}else m.push(y)}B=n.reduce(function(J,I){return I.Ke().isEncrypted()&& J},!0)?l:null; d=Math.max(d,g.P(a.experiments,"html5_hls_initial_bitrate"));h=r||{};n.push(SF(m,c,e,"93",void 0===h.width?0:h.width,void 0===h.height?0:h.height,void 0===h.fps?0:h.fps,f,"auto",d,B,t));return NF(a.D,n,hD(a,b))}; SF=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,w="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,w||(w=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,w=y.itag);d=new uw(d,"application/x-mpegURL",new kw(0,t,null,w),new nw(e,f,h,null,void 0,m,void 0,r),void 0,p);a=new Cia(a,b,c);a.D=n?n:1369843;return new RF(d,a,l)}; nma=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN}; pma=function(a,b){for(var c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Ld===b.Ld&&!e.audioChannels)return d}return""}; oma=function(a){for(var b=new Set,c=g.q(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.q(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.q(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]}; TF=function(a,b){this.La=a;this.u=b}; rma=function(a,b,c,d){var e=[];c=g.q(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new Kv(h.url,!0);if(h.s){var l=h.sp,m=zv(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.q(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=Bw(h.type,h.quality,h.itag,h.width,h.height);e.push(new TF(h,f))}}return NF(a.D,e,hD(a,b))}; UF=function(a,b){this.La=a;this.u=b}; sma=function(a){var b=[];g.Cb(a,function(c){if(c&&c.url){var d=Bw(c.type,"medium","0");b.push(new UF(d,c.url))}}); return b}; tma=function(a,b,c){c=sma(c);return NF(a.D,c,hD(a,b))}; uma=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=yC(a.ustreamerConfig))}; g.VF=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.u=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null}; g.WF=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")}; YF=function(a){for(var b={},c=g.q(Object.keys(XF)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[XF[d]];e&&(b[d]=e)}return b}; ZF=function(a,b){for(var c={},d=g.q(Object.keys(XF)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Fv(f)&&(c[XF[e]]=f)}return c}; bG=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url}); a.sort(function(l,m){return l.width-m.width||l.height-m.height}); for(var c=g.q(Object.keys($F)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=$F[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=aG(h.url);g.Fv(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=aG(a.url),g.Fv(a)&&(b["maxresdefault.jpg"]=a));return b}; aG=function(a){return a.startsWith("//")?"https:"+a:a}; cG=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return vma[a];return null}; dG=function(a){return a&&a.baseUrl||""}; eG=function(a){a=g.Dp(a);for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a}; fG=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.dh=c)}; wma=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.q(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=gG(d.baseUrl);if(!e)return;d=new g.VF({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.T(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.Av=b.audioTracks||[];a.pA=b.defaultAudioTrackIndex||0;a.qA=b.translationLanguages?g.Lc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.T(f.languageName)}}): []; a.wr=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; xma=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.interstitials.map(function(l){var m=l.unserializedPlayerResponse;if(m)return{is_yto_interstitial:!0,raw_player_response:m};if(l=l.playerVars)return Object.assign({is_yto_interstitial:!0},Bp(l))}); e=g.q(e);for(var f=e.next();!f.done;f=e.next())switch(f=f.value,d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:f,mo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,mo:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(d.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:h,playerVars:f, mo:0===h?5:7})}}}; yma=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)}); c&&(a.tooltipRenderer=c.tooltipRenderer)}; hG=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)}; iG=function(a){g.O.call(this);this.u=null;this.C=new g.Rn;this.u=null;this.I=new Set;this.crossOrigin=a||""}; lG=function(a,b,c){c=jG(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Lc(e)){d=a;var f=c,h=f+"-"+e;d.I.has(h)||(d.I.add(h),g.Qn(d.C,f,{xC:f,zD:e}))}kG(a)}; kG=function(a){if(!a.u&&!a.C.isEmpty()){var b=a.C.remove();a.u=zma(a,b)}}; zma=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.xC].Bd(b.zD);c.onload=function(){var d=b.xC,e=b.zD;null!==a.u&&(a.u.onload=null,a.u=null);d=a.levels[d];d.loaded.add(e);kG(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.ow()-1);e=[e,d];a.V("l",e[0],e[1])}; return c}; g.mG=function(a,b,c,d){this.level=a;this.F=b;this.loaded=new Set;this.level=a;this.F=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.C=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.u=Math.floor(Number(a[5]));this.D=a[6];this.signature=a[7];this.videoLength=d}; nG=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;iG.call(this,c);this.isLive=d;this.K=!!e;this.levels=this.B(a,b);this.D=new Map;1=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1}; pG=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.mG.call(this,a,b,c,0);this.B=null;this.I=d?3:0}; qG=function(a,b,c,d){nG.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;ab&&(rA()||g.Q(d.experiments,"html5_format_hybridization"))&&(n.B.supportsChangeType=+rA(),n.I=b);2160<=b&&(n.va=!0);QB()&&(n.B.serveVp9OverAv1IfHigherRes= 0,n.Aa=!1);n.lv=m;m=g.ur||pr()&&!m?!1:!0;n.W=m;n.la=g.Q(d.experiments,"html5_format_hybridization");er()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.D=!0,n.F=!0);a.isLivePlayback&&(d=a.Qc&&a.Ra.aa("html5_enable_audio_51_for_live_dai"),m=!a.Qc&&a.Ra.aa("html5_enable_audio_51_for_live_non_dai"),n.P=d||m);return a.Yo=n}; Dma=function(a){a.kh||a.na&&EA(a.na);var b={};a.na&&(b=rC(BG(a),a.Ra.D,a.na,function(c){return a.V("ctmp","fmtflt",c)})); b=new JF(b,a.Ra.experiments,a.JF,Cma(a));g.D(a,b);a.xp=!1;a.Fd=!0;zia(b,function(c){for(var d=g.q(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.kh=a.kh;e.Lr=a.Lr;e.Kr=a.Kr;break;case "widevine":e.oo=a.oo}a.Rn=c;if(0b)return!1}return!$G(a)||"ULTRALOW"!=a.latencyClass&&21530001!=aH(a)?window.AbortController?a.aa("html5_streaming_xhr")||a.aa("html5_streaming_xhr_manifestless")&&$G(a)?!0:!1:!1:!0}; cH=function(a){return Rz({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,ti:a.ti,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:$G(a),My:bH(a)})}; aH=function(a){return a.isLowLatencyLiveStream&&void 0!=a.na&&5<=TA(a.na)?21530001:a.liveExperimentalContentId}; dH=function(a){return er()&&ZG(a)?!1:!gC()||a.RA?!0:!1}; Fma=function(a){a.Fd=!0;a.pl=!1;if(!a.Dg&&eH(a))Hfa(a.videoId).then(function(d){a:{var e=HG(a,a.adaptiveFormats);if(e)if(d=HG(a,d)){if(0l&&(l=n.Ke().audio.u);2=a.Ja.videoInfos.length)&&(c=zw(a.Ja.videoInfos[0]),c!=("fairplay"==a.Xc.flavor)))for(d=g.q(a.Rn),e=d.next();!e.done;e=d.next())if(e=e.value,c==("fairplay"==e.flavor)){a.Xc=e;break}}; jH=function(a,b){a.Pj=b;iH(a,new pC(g.Lc(a.Pj,function(c){return c.Ke()})))}; Jma=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ra.deviceParams.c,cver:a.Ra.deviceParams.cver};a.Zt&&(b.ptk=a.Zt,b.oid=a.JE,b.ptchn=a.IE,b.pltype=a.KE);return b}; g.kH=function(a){return EG(a)&&a.kh?(a={},a.fairplay="https://web.archive.org/web/20201214145215/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.La&&a.La.Ld||null}; lH=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.T(b.text):a.paidContentOverlayText}; mH=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.md(b.durationMs):a.paidContentOverlayDurationMs}; nH=function(a){var b="";if(a.nx)return a.nx;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b}; g.oH=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; pH=function(a){return!!(a.Dg||a.adaptiveFormats||a.Lq||a.co||a.hlsvp)}; qH=function(a){var b=g.ib(a.Hf,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Fd&&(pH(a)||g.ib(a.Hf,"heartbeat")||b)}; GG=function(a,b){var c=Cp(a),d={};if(b)for(var e=g.q(b.split(",")),f=e.next();!f.done;f=e.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[f[1]]={width:f[2],height:f[3]});e=g.q(c);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f.itag];h&&(f.width=h.width,f.height=h.height)}return c}; vG=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.yq=!!c.copyTextEndpoint)}}; sH=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Fg=c);if(a.Fg){if(c=a.Fg.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.Fg.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.oj=d,a.jc=!0):(a.oj="",a.jc=!1);if(d=c.defaultThumbnail)a.Rh=bG(d);(d=c.videoDetails&& c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&wG(a,b,d);if(d=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.hw=d.title,a.gw=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.fl=!!c.addToWatchLaterButton;vG(a,c.shareButton);c.playButton&&c.playButton.buttonRenderer&&c.playButton.buttonRenderer.navigationEndpoint&&(d=c.playButton.buttonRenderer.navigationEndpoint,d.watchEndpoint&&(d=d.watchEndpoint,d.watchEndpointSupportedOnesieConfig&&d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig&& (a.Xt=new uma(d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));c.videoDurationSeconds&&(a.lengthSeconds=g.md(c.videoDurationSeconds));a.aa("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&hG(a,c.webPlayerActionsPorting);if(a.aa("embeds_wexit_list_ajax_migration")&&c.playlist&&c.playlist.playlistPanelRenderer){c=c.playlist.playlistPanelRenderer;d=[];var e=Number(c.currentIndex);if(c.contents)for(var f=0,h=c.contents.length;f(b?parseInt(b[1],10):NaN);c=a.Ra;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Ra.deviceParams.ctheme; var d;if(d=!a.Cm)c||(c=a.Ra,c="TVHTML5"===c.deviceParams.c&&c.deviceParams.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.aa("cast_prefer_audio_only_for_atv_and_uploads")||a.aa("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Cm=!0);return!a.Ra.deviceHasDisplay||a.Cm&&a.Ra.C}; FH=function(a){return EH(a)&&!!a.adaptiveFormats}; EH=function(a){return!!(a.aa("hoffle_save")&&a.Wm&&a.Ra.C)}; fH=function(a,b){if(a.Wm!=b&&(a.Wm=b)&&a.na){var c=a.na,d;for(d in c.u){var e=c.u[d];e.D=!1;e.u=null}}}; eH=function(a){return!(!(a.aa("hoffle_load")&&a.adaptiveFormats&&Rw(a.videoId))||a.Wm)}; GH=function(a){if(!a.na||!a.La||!a.dd)return!1;var b=a.na.u;return!!b[a.La.id]&&Nv(b[a.La.id].B.u)&&!!b[a.dd.id]&&Nv(b[a.dd.id].B.u)}; rH=function(a){return(a=a.Ro)&&a.showError?a.showError:!1}; CG=function(a){return a.aa("disable_rqs")?!1:FG(a,"html5_high_res_logging")}; FG=function(a,b){return a.aa(b)?!0:(a.fflags||"").includes(b+"=true")}; Mma=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; tG=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.du=c.quartile_0_url,a.gy=c.quartile_25_url,a.iy=c.quartile_50_url,a.ky=c.quartile_75_url,a.ey=c.quartile_100_url,a.eu=c.quartile_0_urls,a.hy=c.quartile_25_urls,a.jy=c.quartile_50_urls,a.ly=c.quartile_75_urls,a.fy=c.quartile_100_urls)}; JH=function(a){return a?gC()?!0:HH&&5>IH?!1:!0:!1}; sG=function(a){var b={};a=g.q(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b}; gG=function(a){if(a){if(Hv(a))return a;a=Iv(a);if(Hv(a,!0))return a}return""}; Nma=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null}; KH=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null}; LH=function(a){this.u=a}; MH=function(a){var b=a.u.getVideoData(1);a.u.xa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})}; Oma=function(a){var b=new LH(a.J);return{rI:function(){return b}}}; NH=function(a,b){this.u=a;this.Ca=b||{};this.K=String(Math.floor(1E9*Math.random()));this.N={};this.P=0}; Pma=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression"; case "viewable_impression":return"adviewableimpression";default:return null}}; OH=function(){g.O.call(this);var a=this;this.u={};g.Wf(this,function(){return Object.keys(a.u).forEach(function(b){return delete a.u[b]})})}; QH=function(){if(null===PH){PH=new OH;gl.getInstance().u="b";var a=gl.getInstance(),b="h"==Nk(a)||"b"==Nk(a),c=!(rh.getInstance(),!1);b&&c&&(a.F=!0,a.I=new ica)}return PH}; Qma=function(a,b,c){a.u[b]=c}; Rma=function(a){this.C=a;this.B={};this.u=Sf()?500:g.cD(a.T())?1E3:2500}; Tma=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.B||(a.B[d.mimeType]=a.C.canPlayType(d.mimeType));return a.B[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1}); return Sma(a,c)}; Sma=function(a,b){for(var c=null,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.u||ha.u||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&hc.maxBitrate&&(c=e));return c}; RH=function(a,b){this.u=a;this.F=b;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(e,f){return e+f},0); for(var c=0,d=a+1;d=a.B}; WH=function(){NH.apply(this,arguments)}; XH=function(){this.B=[];this.D=null;this.C=0}; YH=function(a,b){b&&a.B.push(b)}; ZH=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b}; $H=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})}); return b}; aI=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0}; bI=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind}; Vma=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=ZH(a.impressionCommands)||[];b.error=ZH(a.errorCommands)||[];b.mute=ZH(a.muteCommands)||[];b.unmute=ZH(a.unmuteCommands)||[];b.pause=ZH(a.pauseCommands)||[];b.rewind=ZH(a.rewindCommands)||[];b.resume=ZH(a.resumeCommands)||[];b.skip=ZH(a.skipCommands)||[];b.close=ZH(a.closeCommands)||[];b.clickthrough=ZH(a.clickthroughCommands)||[];b.fullscreen=ZH(a.fullscreenCommands)||[];b.active_view_viewable=ZH(a.activeViewViewableCommands)|| [];b.active_view_measurable=ZH(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=ZH(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=ZH(a.endFullscreenCommands)||[];b.channel_clickthrough=ZH(a.channelClickthroughCommands)||[];b.abandon=ZH(a.abandonCommands)||[];b.progress=$H(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind})); b.start=$H(a.progressCommands.filter(function(c){return bI(c)&&Zd(aI(c),0)})); b.first_quartile=$H(a.progressCommands.filter(function(c){return bI(c)&&Zd(aI(c),.25)})); b.midpoint=$H(a.progressCommands.filter(function(c){return bI(c)&&Zd(aI(c),.5)})); b.third_quartile=$H(a.progressCommands.filter(function(c){return bI(c)&&Zd(aI(c),.75)})); b.complete=$H(a.progressCommands.filter(function(c){return bI(c)&&Zd(aI(c),1)})); return b}; cI=function(a){NH.call(this,a,Vma(a));this.B=a.questions?a.questions.reduce(function(b,c){var d=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer;return d?b+(d.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0}; dI=function(a,b,c,d){this.id=b;this.X=a.placementStartPings||[];this.W=a.placementEndPings||[];this.C=d.re;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.D=(this.K=e.getAdBreakUrl||"")?0:2;d.u=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=GF(b,d);if(null==f)d=new DF(b,new tn(-1,-1),!1,"adcuerange:invalid", 2),d.deactivate(),d=[null,d];else{e=":"+(Sn.getInstance().u++).toString(36);var h=d.daiEnabled||d.re;f=new DF(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.re||0=c*a.D.wz||d)&&EI(a,"first_quartile");(b>=c*a.D.Kz||d)&&EI(a,"midpoint");(b>=c*a.D.Mz||d)&&EI(a,"third_quartile")}; II=function(a,b,c,d){if(null==a.F){if(cd||d>c)return;EI(a,b)}; BI=function(a,b,c){if(0l.D&&l.Qe()}}; AJ=function(a){if(a.I&&a.N){a.N=!1;a=g.q(a.I.listeners);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c.u){b=c.u;c.u=void 0;c.B=void 0;c=c.C();zJ(c.Db,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Ue(b)}else S("Received AdNotify terminated event when no slot is active")}}}; BJ=function(a,b){QI.call(this,"ads-engagement-panel",a,b)}; CJ=function(a,b,c,d,e){WI.call(this,a,b,c,d,e)}; DJ=function(a,b,c,d){QI.call(this,"invideo-overlay",a,b,c,d);this.u=d}; EJ=function(a,b,c,d,e){WI.call(this,a,b,c,d,e);this.u=b}; FJ=function(a,b){QI.call(this,"persisting-overlay",a,b)}; GJ=function(a,b,c,d,e){WI.call(this,a,b,c,d,e);this.u=b}; HJ=function(){QI.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adBreakEndSeconds=null;this.adVideoId=""}; g.IJ=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Zu:c.Zu},e=d.next())e=e.value,c.Zu=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Zu}}(c)); return a}; JJ=function(a){return a?g.T(a):null}; KJ=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a}; cna=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null}; LJ=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}}; fna=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(dna(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=JJ(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&& ena(a,b,c,d))}}; dna=function(a,b,c){var d=JJ(b.confirmLabel)||"",e=JJ(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(JJ(l.value)||"");d={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,dialogMessage:JJ(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.q(b.impressionEndpoints),n=m.next();!n.done;n=m.next())c(n.value)}; a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}}; ena=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:JJ(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=KJ(b.navigationEndpoint);var h=LJ(b[1]),l=[LJ(b[0])];(b=cna(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)}; a.muteAd=function(){m||c(h);m=!1;for(var n=g.q(l),p=n.next();!p.done;p=n.next())c(p.value)}; gna(a,e,d)}}}; gna=function(a,b,c){a.muteAdInfo.goneText=JJ(b.title)||"";a.muteAdInfo.questionText=JJ(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=JJ(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)}; a=a.muteAdInfo.surveyOptions;b=g.q(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=JJ(e.reason)||"";e=KJ(e.endpoint)[0];a.push({label:d,url:e})}}; MJ=function(a,b){var c=new HJ;c.adBadgeText="Ad";1=d.B&&(d.u=d.B,d.Ya.stop());e=d.u/1E3;d.F&&d.F.kc(e);IK(d,{current:e,duration:d.B/1E3})}); g.D(this,this.Ya);this.u=0;this.C=null;g.Wf(this,function(){d.C=null}); this.D=0}; IK=function(a,b){a.I.xa("onAdPlaybackProgress",b);a.C=b}; KK=function(a){QI.call(this,"survey",a)}; LK=function(a,b,c,d,e,f,h){WI.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.C=new Fs;g.D(this,this.C);this.C.R(this.J,"resize",function(){450>g.aF(l.J).getPlayerSize().width&&(g.Hs(l.C),l.de())}); this.K=0;this.I=h(this,function(){return""+(Date.now()-l.K)}); if(this.u=g.cD(a.T())?new JK(1E3*b.B,a,f):null)g.D(this,this.u),this.C.R(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.D.u,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,OJ(l.I.u,m&&m.timeoutCommands)):g.Tr(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})}; MK=function(a,b){QI.call(this,"survey-interstitial",a,b)}; NK=function(a,b,c,d,e){WI.call(this,a,b,c,d,e,1);this.u=b}; OK=function(a){QI.call(this,"ad-text-interstitial",a)}; PK=function(a,b,c,d,e,f){WI.call(this,a,b,c,d,e);this.C=b;this.u=b.u.durationMilliseconds||0;this.Ya=null;this.D=f}; QK=function(a,b){var c=void 0===c?!0:c;var d=g.L("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.td(window.location.href);e&&d.push(e);e=g.td(a);if(g.ib(d,e)||!e&&lc(a,"/"))if(g.Zn("autoescape_tempdata_url")&&(d=document.createElement("a"),g.ed(d,a),a=d.href),a&&(d=vd(a),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.dt()},b)),f){var f=parseInt(f,10);isFinite(f)&&0=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}var d=Math.max(a.startSecs,0);return{TH:new tn(d,c),mJ:new Pt(d,c-d,a.context,a.identifier,a.event,a.u)}}; iL=function(){this.u=[]}; jL=function(a,b,c){var d=g.xb(a.u,b);if(0<=d)return b;b=-d-1;return b>=a.u.length||a.u[b]>c?null:a.u[b]}; qna=function(a){this.B=new iL;this.u=new hL(a.UH,a.RP,a.HP)}; kL=function(){NH.apply(this,arguments)}; lL=function(a){kL.call(this,a);g.Lc((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.ce(b.width,b.height)})}; mL=function(a){this.u=a}; nL=function(a){a=[a,a.C].filter(function(d){return!!d}); for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a}; pL=function(a,b){var c=a.u;g.$l(function(){return oL(c,b,1)})}; rna=function(a,b,c){this.C=a;this.u=b;this.B=c;this.D=a.getCurrentTime()}; tna=function(a,b){var c=void 0===c?Date.now():c;if(a.B)for(var d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=c,h=a.u;qL({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:sna(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:h}});"unknown"===e.event&&rL("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.u);e=e.startSecs+e.u/1E3;e>a.D&&a.C.getCurrentTime()>e&&rL("DAI_ERROR_TYPE_LATE_CUEPOINT", a.u)}}; una=function(a,b,c){a.B&&qL({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})}; sL=function(a,b){a.B&&qL({driftRecoveryInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.yC-b.ME).toString(),driftFromHeadMs:Math.round(1E3*$E(a.C)).toString()}})}; vna=function(a,b){a.B&&qL({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.EH}})}; rL=function(a,b){qL({daiStateTrigger:{errorType:a,contentCpn:b}})}; qL=function(a){g.rq("adsClientStateChange",a)}; sna=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START"}}; tL=function(a){this.J=a;this.preloadType="2";this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.D=this.u=this.rh=!1;this.adFormat=null;this.clientName=(a=!g.Q(this.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch"))?this.J.T().deviceParams.c:g.L("INNERTUBE_CLIENT_NAME",void 0);this.clientVersion=a?this.J.T().deviceParams.cver:g.L("INNERTUBE_CLIENT_VERSION",void 0);this.F=a?this.J.T().deviceParams.cbrand:"";this.I=a?this.J.T().deviceParams.cmodel:"";this.playerType= "html5";this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="vod"}; vL=function(a,b,c,d,e,f){uL(a);var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=e?uL(a):(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=f?"live":"vod",a.D=d+1===e,a.rh=!0,a.rh&&(zB("c",a.clientName,a.actionType),zB("cver",a.clientVersion,a.actionType),g.Q(a.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch")|| (zB("cbrand",a.F,a.actionType),zB("cmodel",a.I,a.actionType)),zB("yt_pt",a.playerType,a.actionType),zB("yt_pre",a.preloadType,a.actionType),zB("yt_abt",wna(a.B),a.actionType),a.contentCpn&&zB("cpn",a.contentCpn,a.actionType),a.videoId&&zB("docid",a.videoId,a.actionType),a.adCpn&&zB("ad_cpn",a.adCpn,a.actionType),a.adVideoId&&zB("ad_docid",a.adVideoId,a.actionType),zB("yt_vst",a.videoStreamType,a.actionType),a.adFormat&&zB("ad_at",a.adFormat,a.actionType)))}; uL=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.B="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.rh=!1;a.u=!1}; wL=function(a){a.u=!1;DB("video_to_ad",["apbs"],void 0,void 0)}; yL=function(a){a.D?xL(a):(a.u=!1,DB("ad_to_ad",["apbs"],void 0,void 0))}; xL=function(a){a.u=!1;DB("ad_to_video",["pbresume"],void 0,void 0)}; zL=function(a){a.rh&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&AB("apbs",void 0,a.actionType))}; wna=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"1";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"2";case "AD_PLACEMENT_KIND_END":return"3";default:return"unknown"}}; AL=function(){}; g.BL=function(a){return(a=xna[a.toString()])?a:"LICENSE"}; g.CL=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64}; DL=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.CL(b,c)}; EL=function(a,b){return DL(a,a.state|b)}; FL=function(a,b){return DL(a,a.state&~b)}; GL=function(a,b,c){return DL(a,(a.state|b)&~c)}; g.U=function(a,b){return!!(a.state&b)}; g.HL=function(a,b){return b.state===a.state&&b.stateData===a.stateData}; g.IL=function(a){return g.U(a,8)&&!g.U(a,2)&&!g.U(a,1024)}; JL=function(a){return a.Jb()&&!g.U(a,16)&&!g.U(a,32)}; yna=function(a){return g.U(a,8)&&g.U(a,16)}; g.KL=function(a){return g.U(a,1)&&!g.U(a,2)}; LL=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1}; NL=function(a){var b=g.Fe(g.Mb(ML),function(c){return!!(a&ML[c])}); g.zb(b);return"yt.player.playback.state.PlayerState<"+b.join(",")+">"}; OL=function(a,b,c,d,e,f,h,l){g.O.call(this);this.Nc=a;this.J=b;this.u=d;this.F=this.u.B instanceof NH?this.u.B:null;this.B=null;this.Y=!1;this.K=c;this.W=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ca=0;this.fa=!1;this.gh=e;this.Um=f;this.bk=h;this.X=!1;this.daiEnabled=l}; PL=function(a){if(rI(a.J)){var b=a.J.getVideoData(2),c=a.u.P[b.Ac]||null;if(!c)return g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||S("AdPlacementCoordinator ended because no mapped ad is found",void 0,void 0,{adCpn:b.clientPlaybackNonce,contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.ii(),!0;if(!a.B||a.B&&a.B.ad!==c)g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||S("AdPlacementCoordinator played an ad due to ad to ad transition",void 0,void 0,{adCpn:b.clientPlaybackNonce, contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.Zd(c)}else if(1===a.J.getPresentingPlayerType()&&(g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||S("AdPlacementCoordinator ended due to ad to content transition",void 0,void 0,{contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.B))return a.ii(),!0;return!1}; QL=function(a){(a=a.baseUrl)&&g.Et(a,void 0,Rm(a))}; RL=function(a,b){vL(a.K,a.u.u.u,b,a.hB(),a.jB(),a.isLiveStream())}; TL=function(a){SL(a.Nc,a.u.u,a);a.daiEnabled&&!a.u.N&&(zna(a,a.kB()),a.u.N=!0)}; zna=function(a,b){for(var c=UL(a),d=a.u.u.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=VL(h);e.push({externalVideoId:h.C,originalMediaDurationMs:(1E3*h.B).toString(),trimmedMediaDurationMs:(parseInt(h.u.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.D.D=a.u.u.start;h.D.C=c;if(!Ana(a,h,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+VL(p)},0); una(a.gh,xia(a.u.u),c);vna(a.gh,{cueIdentifier:a.u.C&&a.u.C.identifier,EH:e})}; VL=function(a){var b=1E3*a.B;return 0a.width*a.height*.2)return{Vu:3,Mq:501,errorMessage:"ad("+tO(c)+") to container("+tO(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Vu:3,Mq:501,errorMessage:"ad("+tO(c)+") covers container("+tO(a)+") center."}}; Yoa=function(a,b){var c=wO(a.ua,"metadata_type_ad_placement_config");return new mO(a.bd,b,c,a.layoutId)}; xO=function(a){return wO(a.ua,"metadata_type_invideo_overlay_ad_renderer")}; yO=function(a){return g.Q(a.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")}; zO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",S:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.P=[];this.F=this.Ha=this.va=null;a=this.ha("ytp-ad-overlay-container");this.la=new XN(a,45E3,6E3,.3,.4);g.D(this,this.la);yO(this.api)||(this.ka=new g.F(this.clear,45E3,this),g.D(this,this.ka));this.D=Zoa(this);g.D(this,this.D);this.D.ga(a);this.C=$oa(this);g.D(this,this.C);this.C.ga(a);this.B=apa(this);g.D(this,this.B);this.B.ga(a);this.Qa=this.ea=null;this.Aa= !1;this.I=null;this.X=0;this.hide()}; Zoa=function(a){var b=new g.qN({G:"div",L:"ytp-ad-text-overlay",S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[LN(AO)]}]},{G:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{G:"div",ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Z:"{{displayUrl}}"}]});a.R(b.ha("ytp-ad-overlay-title"),"click",function(c){return BO(a,b.element,c)}); a.R(b.ha("ytp-ad-overlay-link"),"click",function(c){return BO(a,b.element,c)}); a.R(b.ha("ytp-ad-overlay-close-container"),"click",a.Ix);b.hide();return b}; $oa=function(a){var b=new g.qN({G:"div",ia:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[LN(AO)]}]},{G:"div",L:"ytp-ad-overlay-text-image",S:[{G:"img",U:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{G:"div",ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Z:"{{displayUrl}}"}]});a.R(b.ha("ytp-ad-overlay-title"),"click",function(c){return BO(a,b.element,c)}); a.R(b.ha("ytp-ad-overlay-link"),"click",function(c){return BO(a,b.element,c)}); a.R(b.ha("ytp-ad-overlay-close-container"),"click",a.Ix);a.R(b.ha("ytp-ad-overlay-text-image"),"click",a.aP);b.hide();return b}; apa=function(a){var b=new g.qN({G:"div",L:"ytp-ad-image-overlay",S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[LN(AO)]}]},{G:"div",L:"ytp-ad-overlay-image",S:[{G:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.R(b.ha("ytp-ad-overlay-image"),"click",function(c){return BO(a,b.element,c)}); a.R(b.ha("ytp-ad-overlay-close-container"),"click",a.Ix);b.hide();return b}; CO=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)M(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.me("video-ads ytp-ad-module")||null;null==d?M(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.ea=new g.qN({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.D(a,a.ea),a.ea.ga(d),d=new lO(a.api,a.Fa,a.layoutId,a.u,a.ea.element,!1),g.D(a,d),d.init(PI("ad-info-hover-text-button"),c,a.macros),a.I? (d.ga(a.I,0),d.subscribe("k",a.hM,a),d.subscribe("j",a.ON,a),a.R(a.I,"click",a.iM),c=g.me("ytp-ad-button",d.element),a.R(c,"click",a.NL),a.Qa=d):M(Error("Ad info button container within overlay ad was not present.")))}}else g.jo(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; bpa=function(a){return a.F&&a.F.closeButton&&a.F.closeButton.buttonRenderer&&(a=a.F.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]}; cpa=function(a,b){if(DO(a,EO)||a.api.app.visibility.u)return!1;var c=rN(b.title),d=rN(b.description);if(g.nc(c)||g.nc(d))return!1;uN(a,a.D.element,b.trackingParams||null);a.D.ya("title",rN(b.title));a.D.ya("description",rN(b.description));a.D.ya("displayUrl",rN(b.displayUrl));b.navigationEndpoint&&sb(a.P,b.navigationEndpoint);a.D.show();a.la.start();xN(a,a.D.element,!0);yO(a.api)||(a.R(a.api,"resize",function(){DO(a,EO)&&a.clear()}),a.R(a.api,"minimized",a.LN)); a.R(a.D.element,"mouseover",function(){a.X++}); return!0}; dpa=function(a,b){if(DO(a,EO)||a.api.app.visibility.u)return!1;var c=rN(b.title),d=rN(b.description);if(g.nc(c)||g.nc(d))return!1;uN(a,a.C.element,b.trackingParams||null);a.C.ya("title",rN(b.title));a.C.ya("description",rN(b.description));a.C.ya("displayUrl",rN(b.displayUrl));a.C.ya("imageUrl",foa(b.image));b.navigationEndpoint&&sb(a.P,b.navigationEndpoint);a.Ha=b.imageNavigationEndpoint||null;a.C.show();a.la.start();xN(a,a.C.element,!0);yO(a.api)||a.R(a.api,"resize",function(){DO(a,EO)&&a.clear()}); a.R(a.C.element,"mouseover",function(){a.X++}); return!0}; epa=function(a,b){if(a.api.app.visibility.u)return!1;var c=goa(b.image),d=c;c.widthe&&(h+="0"));if(0f&&(h+="0");h+=f+":";10>c&&(h+="0");d=h+c}return 0<=a?d:"-"+d}; g.KO=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; LO=function(a,b,c,d,e,f){NN.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.C=null;this.D=f;this.hide()}; MO=function(a,b,c,d){RN.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; NO=function(a,b,c,d,e){NN.call(this,a,b,{G:"div",ia:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",S:[{G:"div",L:"ytp-flyout-cta-text-container",S:[{G:"div",L:"ytp-flyout-cta-headline-container"},{G:"div",L:"ytp-flyout-cta-description-container"}]},{G:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.D=new zN(this.api,this.Fa,this.layoutId,this.u,"ytp-flyout-cta-icon");g.D(this,this.D);this.D.ga(this.ha("ytp-flyout-cta-icon-container")); this.P=new RN(this.api,this.Fa,this.layoutId,this.u,"ytp-flyout-cta-headline");g.D(this,this.P);this.P.ga(this.ha("ytp-flyout-cta-headline-container"));this.I=new RN(this.api,this.Fa,this.layoutId,this.u,"ytp-flyout-cta-description");g.D(this,this.I);this.I.ga(this.ha("ytp-flyout-cta-description-container"));this.C=new MN(this.api,this.Fa,this.layoutId,this.u,["ytp-flyout-cta-action-button"]);g.D(this,this.C);this.C.ga(this.ha("ytp-flyout-cta-action-button-container"));this.X=null;this.ea=0;this.hide()}; OO=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=PI("ytp-ad-toggle-button-input");W.call(this,a,b,{G:"div",ia:["ytp-ad-toggle-button"].concat(e),S:[{G:"label",L:"ytp-ad-toggle-button-label",U:{"for":h},S:[{G:"span",L:"ytp-ad-toggle-button-icon",U:{role:"button","aria-label":"{{tooltipText}}"},S:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",Z:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",Z:"{{toggledIconTemplateSpec}}"}]},{G:"input", L:"ytp-ad-toggle-button-input",U:{id:h,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",Z:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",Z:"{{tooltipText}}"}]}]},f,c,d);this.D=this.ha("ytp-ad-toggle-button");this.B=this.ha("ytp-ad-toggle-button-input");this.ha("ytp-ad-toggle-button-label");this.X=this.ha("ytp-ad-toggle-button-icon");this.I=this.ha("ytp-ad-toggle-button-untoggled-icon");this.F=this.ha("ytp-ad-toggle-button-toggled-icon");this.ea=this.ha("ytp-ad-toggle-button-text"); this.C=null;this.P=!1;this.hide()}; PO=function(a){a.P&&(a.isToggled()?(g.Cg(a.I,!1),g.Cg(a.F,!0)):(g.Cg(a.I,!0),g.Cg(a.F,!1)))}; hpa=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d})); return c||[]}; QO=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.B=null;this.D=new OO(this.api,this.Fa,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-like-button"]);g.D(this,this.D);this.D.ga(this.element);this.C=new OO(this.api,this.Fa,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-dislike-button"]);g.D(this,this.C);this.C.ga(this.element);this.F=new g.TN(this,400,!1,500,function(){return f.hide()}); g.D(this,this.F);this.hide()}; ipa=function(a,b){a.D.init(PI("toggle-button"),a.B.likeButton.toggleButtonRenderer,b);a.C.init(PI("toggle-button"),a.B.dislikeButton.toggleButtonRenderer,b);a.R(a.element,"change",a.wD)}; RO=function(a,b,c,d){MN.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; SO=function(a,b,c,d,e){e=void 0===e?!1:e;W.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.B=e;this.hide()}; TO=function(a,b){this.B=a;this.u=b}; UO=function(a,b){return a.B+b*a.getLength()}; VO=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.Wd(a,0,1)}; WO=function(a,b){g.qN.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.C=a;this.B=b;g.D(this,this.B);this.I=this.ha("ytp-ad-persistent-progress-bar");this.u=-1;this.R(a,"presentingplayerstatechange",this.F);this.hide();this.F()}; XO=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",S:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.I=this.ha("ytp-ad-player-overlay-flyout-cta");this.C=this.ha("ytp-ad-player-overlay-instream-info");this.D=null;jpa(this)&&(a=ze("div"),g.H(a, "ytp-ad-player-overlay-top-bar-gradients"),b=this.C,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new MO(this.api,this.Fa,this.layoutId,this.u),c.ga(a),c.init(PI("ad-title"),{text:b.title},this.macros),g.D(this,c)),this.D=a);this.F=this.ha("ytp-ad-player-overlay-skip-or-preview");this.X=this.ha("ytp-ad-player-overlay-progress-bar");this.P=this.ha("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.D(this,this.B);this.hide()}; jpa=function(a){a=a.api.T();return qD(a)&&a.u}; YO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.C=this.ha("ytp-ad-survey-answer");this.B=null;this.D="";this.hide()}; ZO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.C=this.ha("ytp-ad-survey-none-of-the-above");this.B=null;this.hide()}; $O=function(a,b,c,d){MN.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")}; aP=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",S:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{G:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.I=this.ha("ytp-ad-survey-player-overlay-instream-info");this.C={};this.P=this.ha("ytp-ad-survey-player-overlay-skip-or-preview"); this.B=null;this.X=this.ha("ytp-ad-survey-player-overlay-submit");this.D=null;this.F=e;g.D(this,this.F);this.hide()}; bP=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",S:[{G:"div",ia:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",ia:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",ia:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.question=this.ha("ytp-ad-survey-question");this.la=this.ha("ytp-ad-survey-question-background");this.ea=this.ha("ytp-ad-survey-question-text"); this.answers=this.ha("ytp-ad-survey-answers");this.X=this.ha("ytp-ad-survey-question-player-overlay");this.I=null;this.D=[];this.B=null;this.F=g.A()}; kpa=function(a,b,c){var d=new YO(a.api,a.Fa,a.layoutId,a.u);d.ga(a.answers);d.init(PI("survey-answer"),b,c);a.D.push(d)}; mpa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&yN(c)||"",g.nc(c)?g.jo(Error("Found ThumbnailDetails without valid image URL")):g.lg(a.la,"backgroundImage","url("+c+")"));lpa(a,b)}else M(Error("addCommonComponents() needs to be called before starting countdown."))}; lpa=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)M(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.F=g.A();a.B=new ZN(b.durationMilliseconds,a.Fa);g.D(a,a.B);if(b.timeoutCommands){var c=b.timeoutCommands;a.B.subscribe("a",function(){c.forEach(function(e){return a.Fa.executeCommand(e,a.macros)})})}if(a.B&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d= new aP(a.api,a.Fa,a.layoutId,a.u,a.B); d.ga(a.X);d.init(PI("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.I=d;g.D(a,d);a.sF()}catch(e){M(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else M(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.B&&b.durationMilliseconds&&0document.documentMode)d=Nc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.Ae("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=Gda(e.style)}c=Eaa(d,Oc({"background-image":'url("'+c+'")'}));a.style.cssText=Kc(c)}}; tpa=function(a){var b=g.me("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)}; hP=function(a,b){b=void 0===b?2:b;g.O.call(this);this.u=a;this.B=new Fs(this);g.D(this,this.B);this.F=upa;this.D=null;this.B.R(this.u,"presentingplayerstatechange",this.JL);this.D=this.B.R(this.u,"progresssync",this.uD);this.C=b;1===this.C&&this.uD()}; jP=function(a,b){hN.call(this,a);this.D=a;this.K=b;this.B={};var c=new g.V({G:"div",ia:["video-ads","ytp-ad-module"]});g.D(this,c);MC&&g.H(c.element,"ytp-ads-tiny-mode");this.F=new kN(c.element);g.D(this,this.F);g.iP(this.D,c.element,4);g.D(this,Hoa())}; vpa=function(a,b){var c=a.B;var d=b.id;c=null!==c&&d in c?c[d]:null;null==c&&g.jo(Error("Component not found for element id: "+b.id));return c||null}; kP=function(a){this.controller=a}; lP=function(a){this.Ko=a}; mP=function(a){this.Ko=a}; nP=function(a,b,c){this.Ko=a;this.ng=b;this.Fh=c}; xpa=function(a,b,c){var d=a.Ko();switch(b.type){case "SKIP":b=!1;for(var e=g.q(a.ng.u.entries()),f=e.next();!f.done;f=e.next()){f=g.q(f.value);var h=f.next().value;f.next();"SLOT_TYPE_PLAYER_BYTES"===h.Za&&"core"===h.eb&&(b=!0)}b?(c=wpa(a,c))?a.Fh.np(c):S("No triggering layout ID available when attempting to mute."):g.$l(function(){d.ii()})}}; wpa=function(a,b){if(b)return b;for(var c=g.q(a.ng.u.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if("SLOT_TYPE_IN_PLAYER"===d.Za&&"core"===d.eb)return e.layoutId}}; oP=function(){}; pP=function(){}; qP=function(){}; rP=function(a,b){this.yo=a;this.Ea=b}; sP=function(a){this.J=a}; tP=function(a,b){this.Kh=a;this.Ea=b}; zpa=function(a){g.C.call(this);this.u=a;this.B=ypa(this)}; ypa=function(a){var b=new HM;g.D(a,b);a=g.q([new kP(a.u.xH),new rP(a.u.yo,a.u.Ea),new lP(a.u.yH),new sP(a.u.J),new tP(a.u.Kh,a.u.Ea),new nP(a.u.YL,a.u.ng,a.u.Fh),new mP(a.u.JH),new pP,new qP,new oP]);for(var c=a.next();!c.done;c=a.next())c=c.value,Ona(b,c),Pna(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())EM(b,c.value,function(){}); return b}; uP=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.ua.u.has(c.value))return!1;return!0}; vP=function(a){var b=new Map;a.forEach(function(c){b.set(c.u(),c)}); this.u=b}; wO=function(a,b){var c=a.u.get(b);if(void 0!==c)return c.get()}; wP=function(a){return Array.from(a.u.keys())}; Bpa=function(a){var b;return(null===(b=Apa.get(a))||void 0===b?void 0:b.Bq)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; yP=function(a,b){var c={type:b.Za,controlFlowManagerLayer:Cpa.get(b.eb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Xb&&(c.entryTriggerType=xP.get(b.Xb.triggerType)||"TRIGGER_TYPE_UNSPECIFIED");1!==b.feedPosition&&(c.feedPosition=b.feedPosition);if(a){c.debugData={slotId:b.slotId};var d=b.Xb;if(d){var e={type:xP.get(d.triggerType)||"TRIGGER_TYPE_UNSPECIFIED"};"trigger_type_layout_id_entered"===d.triggerType&&(e.layoutIdEnteredTriggerData={enteredLayoutId:d.C});c.debugData.slotEntryTriggerData=e}}return c}; Dpa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:Cpa.get(b.eb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c}; Fpa=function(a,b,c,d){b={opportunityType:Epa.get(b)||"OPPORTUNITY_TYPE_UNSPECIFIED"};a&&(d||c)&&(b.debugData={slots:g.Lc(d||[],function(e){return yP(a,e)}), associatedSlotId:c});return b}; AP=function(a,b){return function(c){return Gpa(zP(a),b.slotId,b.Za,b.feedPosition,b.eb,b.Xb,c.layoutId,c.layoutType,c.eb)}}; Gpa=function(a,b,c,d,e,f,h,l,m){return{adClientDataEntry:{slotData:yP(a,{slotId:b,Za:c,feedPosition:d,eb:e,Xb:f,Ce:[],tf:[],ua:new vP([])}),layoutData:Dpa(a,{layoutId:h,layoutType:l,eb:m,Vd:[],ud:[],td:[],Wd:[],bd:new Map,ua:new vP([]),sd:{}})}}}; BP=function(a){this.za=a;this.u=.1>Math.random()}; zP=function(a){return a.u||g.Q(a.za.get().J.T().experiments,"html5_force_debug_data_for_client_tmp_logs")}; CP=function(a,b,c,d){g.C.call(this);this.B=b;this.Db=c;this.za=d;this.u=a(this,this,this,this,this);g.D(this,this.u);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.D(this,b.value)}; DP=function(a,b){a.B.add(b);g.D(a,b)}; FP=function(a,b,c){S(c,b,void 0,void 0,c.ll);EP(a,b,!0)}; Ipa=function(a,b,c){if(GP(a.u,b))if(HP(a.u,b).D=c?"filled":"not_filled",null===c){IP(a.Db,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Ni(b);EP(a,b,!1)}else{IP(a.Db,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.Oi(b);if(HP(a.u,b).F)EP(a,b,!1);else{IP(a.Db,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.u;if(!HP(f,b))throw new JP("Unknown slotState for onLayout"); if(!f.Uc.Dj.get(b.Za))throw new JP("No LayoutRenderingAdapterFactory registered for slot of type: "+b.Za);if(g.kb(c.Vd)&&g.kb(c.ud)&&g.kb(c.td)&&g.kb(c.Wd))throw new JP("Layout has no exit triggers.");KP(f,0,c.Vd);KP(f,1,c.ud);KP(f,2,c.td);KP(f,6,c.Wd)}catch(n){a.Gf(b,c,n);EP(a,b,!0);return}a.u.Om(b);try{var h=a.u,l=HP(h,b),m=h.Uc.Dj.get(b.Za).get().u(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new JP("Already had LayoutRenderingAdapter registered for slot");l.C=m;LP(h,l,0,c.Vd);LP(h,l,1,c.ud); LP(h,l,2,c.td);LP(h,l,6,c.Wd)}catch(n){MP(a,b);EP(a,b,!0);a.Gf(b,c,n);return}IP(a.Db,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.Ih(b,c);MP(a,b);Hpa(a,b)}}}; NP=function(a,b,c){IP(a.Db,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.Ih(b,c)}; Jpa=function(a,b){zJ(a.Db,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",b);GP(a.u,b)&&(HP(a.u,b).D="fill_canceled",EP(a,b,!1))}; OP=function(a,b,c){IP(a.Db,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.jd(b,c)}; bL=function(a,b,c,d){IP(a.Db,Bpa(d),b,c);a=g.q(a.B);for(var e=a.next();!e.done;e=a.next())e.value.kd(b,c,d)}; MP=function(a,b){if(GP(a.u,b)){HP(a.u,b).Om=!1;var c=PP,d=HP(a.u,b),e=[].concat(g.la(d.K));lb(d.K);c(a,e)}}; PP=function(a,b){b.sort(function(h,l){return h.category===l.category?h.trigger.triggerId.localeCompare(l.trigger.triggerId):h.category-l.category}); for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,GP(a.u,e.slot))if(HP(a.u,e.slot).Om)HP(a.u,e.slot).K.push(e);else{Kpa(a.Db,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q(Lpa.entries());for(e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,(e=c.get(e))&&Mpa(a,e,f);(d=c.get(3))&&Npa(a,d);(d=c.get(4))&&Opa(a,d);(c=c.get(5))&&Ppa(a,c)}; Mpa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&QP(a.u,d.slot)&&Qpa(a,d.slot,d.layout,c)}; Npa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())EP(a,d.value.slot,!1)}; Opa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch(HP(a.u,d.slot).D){case "not_filled":var e=!0;break a;default:e=!1}e&&(zJ(a.Db,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),a.u.Xo(d.slot))}}; Ppa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;zJ(a.Db,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);for(var e=g.q(a.B),f=e.next();!f.done;f=e.next())f.value.Jh(d.slot);try{var h=a.u,l=d.slot,m=HP(h,l);if(!m)throw new rF("Got enter request for unknown slot");if(!m.B)throw new rF("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==m.u)throw new rF("Tried to enter a slot from stage: "+m.u);if(RP(m))throw new rF("Got enter request for already active slot"); for(var n=g.q(SP(h,l.Za+"_"+l.feedPosition).values()),p=n.next();!p.done;p=n.next()){var r=p.value;if(m!==r&&RP(r)){e=void 0;var t=h;f=r;var w=l,x=TP(t.ra.get(),1,!1),y=nF(t.Ba.get(),1),B=zF(f.layout),E=f.slot.Xb,G=Rpa(t,E),J=AF(E,G),I=w.ua.u.has("metadata_type_fulfilled_layout")?zF(wO(w.ua,"metadata_type_fulfilled_layout")):"unknown",Ca=w.Xb,ta=Rpa(t,Ca),jb=AF(Ca,ta);t=G;w=ta;if(t&&w){if(t.start>w.start){var eb=g.q([w,t]);t=eb.next().value;w=eb.next().value}e=t.end>w.start}else e=!1;throw new rF("Trying to enter a slot when a slot of same type is already active.", {details:x+" |"+(J+" |"+jb),activeSlotStatus:f.u,activeLayout:B?B:"empty",enteringLayout:I,hasOverlap:String(e),contentCpn:y.clientPlaybackNonce,contentVideoId:y.videoId,isAutonav:String(y.xi),isAutoplay:String(y.Lh)});}}}catch(Xa){S(Xa,d.slot,UP(a.u,d.slot),void 0,Xa.ll);EP(a,d.slot,!0);continue}d=HP(a.u,d.slot);"scheduled"!==d.u&&VP(d.slot,d.u,"enterSlot");d.u="enter_requested";d.B.Wv()}}; Hpa=function(a,b){var c;if(GP(a.u,b)&&RP(HP(a.u,b))&&UP(a.u,b)&&!QP(a.u,b)){IP(a.Db,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=UP(a.u,b))&&void 0!==c?c:void 0);var d=HP(a.u,b);"entered"!==d.u&&VP(d.slot,d.u,"enterLayoutForSlot");d.u="rendering";d.C.startRendering(d.layout)}}; Qpa=function(a,b,c,d){if(GP(a.u,b)){var e=a.Db,f;var h=(null===(f=Apa.get(d))||void 0===f?void 0:f.jq)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";IP(e,h,b,c);a=HP(a.u,b);"rendering"!==a.u&&VP(a.slot,a.u,"exitLayout");a.u="rendering_stop_requested";a.C.Tg(c,d)}}; EP=function(a,b,c){if(GP(a.u,b)){if(a.u.fx(b)||a.u.ax(b))if(HP(a.u,b).F=!0,!c)return;if(RP(HP(a.u,b)))HP(a.u,b).F=!0,Spa(a,b,c);else if(a.u.gx(b))HP(a.u,b).F=!0,GP(a.u,b)&&(zJ(a.Db,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=HP(a.u,b),b.D="fill_cancel_requested",b.I.u());else{c=UP(a.u,b);zJ(a.Db,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var d=HP(a.u,b),e=b.Xb,f=d.X.get(e.triggerId);f&&(f.Wg(e),d.X["delete"](e.triggerId));e=g.q(b.Ce);for(f=e.next();!f.done;f=e.next()){f= f.value;var h=d.P.get(f.triggerId);h&&(h.Wg(f),d.P["delete"](f.triggerId))}e=g.q(b.tf);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.N.get(f.triggerId))h.Wg(f),d.N["delete"](f.triggerId);null!=d.layout&&(e=d.layout,WP(d,e.Vd),WP(d,e.ud),WP(d,e.td),WP(d,e.Wd));d.I=void 0;null!=d.B&&(d.B.release(),d.B=void 0);null!=d.C&&(d.C.release(),d.C=void 0);d=a.u;HP(d,b)&&(d=SP(d,b.Za+"_"+b.feedPosition))&&d["delete"](b.slotId);zJ(a.Db,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.B);for(d=a.next();!d.done;d= a.next())d=d.value,d.Pi(b),c&&d.Li(b,c)}}}; Spa=function(a,b,c){if(GP(a.u,b)&&RP(HP(a.u,b))){var d=UP(a.u,b);if(d&&QP(a.u,b))Qpa(a,b,d,c?"error":"abandoned");else{zJ(a.Db,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=HP(a.u,b);if(!e)throw new rF("Cannot exit slot it is unregistered");"enter_requested"!==e.u&&"entered"!==e.u&&"rendering"!==e.u&&VP(e.slot,e.u,"exitSlot");e.u="exit_requested";if(void 0===e.B)throw e.u="scheduled",new rF("Cannot exit slot because adapter is not defined");e.B.cw()}catch(f){S(f,b,void 0,void 0,f.ll)}}}}; XP=function(a){this.slot=a;this.X=new Map;this.P=new Map;this.N=new Map;this.W=new Map;this.C=this.layout=this.B=this.I=void 0;this.Om=this.F=!1;this.K=[];this.u="not_scheduled";this.D="not_filled"}; RP=function(a){return"enter_requested"===a.u||a.isActive()}; JP=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.ll=c;this.args=[];b&&this.args.push(b)}; YP=function(a,b,c,d,e,f,h,l){g.C.call(this);this.Uc=a;this.C=b;this.F=c;this.D=d;this.B=e;this.Fb=f;this.ra=h;this.Ba=l;this.u=new Map}; SP=function(a,b){var c=a.u.get(b);return c?c:new Map}; HP=function(a,b){return SP(a,b.Za+"_"+b.feedPosition).get(b.slotId)}; Tpa=function(a){var b=[];a.u.forEach(function(c){c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)}); return b}; Rpa=function(a,b){if(b instanceof yF)return b.C;if(b instanceof xF){var c=sO(a.Fb.get(),b.C);if(c=null===c||void 0===c?void 0:wO(c.ua,"metadata_type_ad_placement_config"))return c=sF(c,0x7ffffffffffff),c instanceof rF?void 0:c.Qg}}; GP=function(a,b){return null!=HP(a,b)}; QP=function(a,b){var c=HP(a,b),d;if(d=null!=c.layout)a:switch(c.u){case "rendering":case "rendering_stop_requested":d=!0;break a;default:d=!1}return d}; UP=function(a,b){var c=HP(a,b);return null!=c.layout?c.layout:null}; ZP=function(a,b,c){if(g.kb(c))throw new rF("No "+Upa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Uc.wg.get(d.triggerType))throw new rF("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);}; KP=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Uc.wg.get(d.triggerType))throw new JP("No trigger adapter registered for "+Upa.get(b)+" trigger of type: "+d.triggerType);}; LP=function(a,b,c,d){d=g.q(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Uc.wg.get(e.triggerType);f.Sg(c,e,b.slot,b.layout?b.layout:null);b.W.set(e.triggerId,f)}}; WP=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.W.get(d.triggerId);e&&(e.Wg(d),a.W["delete"](d.triggerId))}}; VP=function(a,b,c){S("Slot stage was "+b+" when calling method "+c,a)}; Vpa=function(a){return $P(a.jm).concat($P(a.wg)).concat($P(a.qj)).concat($P(a.Tj)).concat($P(a.Dj))}; $P=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.wi&&b.push(c);return b}; Xpa=function(a){g.C.call(this);this.u=a;this.B=Wpa(this)}; Wpa=function(a){var b=new CP(function(c,d,e,f){return new YP(a.u.Uc,c,d,e,f,a.u.Fb,a.u.ra,a.u.Ba)},new Set(Vpa(a.u.Uc).concat(a.u.listeners)),a.u.Db,a.u.za); g.D(a,b);return b}; aQ=function(a){g.C.call(this);var b=this;this.B=a;this.u=null;g.Wf(this,function(){g.Xf(b.u);b.u=null})}; X=function(a){return new aQ(a)}; aqa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,bQ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return Ypa(n)}); a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={ro:b.ro},h=f.next()){b.ro=h.value;h={};for(var l=g.q(b.ro.gv),m=l.next();!m.done;h={Zj:h.Zj},m=l.next())h.Zj=m.value,m=function(n,p){return function(r){return n.Zj.JA(r,p.ro.instreamVideoAdRenderer.elementId,n.Zj.Zz)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Zj.Mm?a.push(Zpa(c,d,h.Zj.aA,e,h.Zj.adSlotLoggingData,m)):a.push($pa(c,d,e,b.ro.instreamVideoAdRenderer.elementId,h.Zj.adSlotLoggingData,m))}return a}; bQ=function(a,b,c){if(b=bqa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=cqa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Hs=c)}else S("InstreamVideoAdRenderer without externalVideoId")}}; bqa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.q(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null}; Ypa=function(a){if(void 0===a.instreamVideoAdRenderer)return S("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.gv),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.JA)return!1;if(void 0===c.Zz)return S("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Hs||void 0===c.Mm||a.Hs!==c.Mm&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Mm)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return S("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:a.Hs,"matching APSR kind":c.Mm}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Mm&&void 0===c.aA)return S("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0}; cqa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Hs:void 0,adVideoId:b,gv:[]});return a.get(b)}; cQ=function(a,b,c,d,e,f,h){d?cqa(a,d).gv.push({aA:b,Mm:c,Zz:e,adSlotLoggingData:f,JA:h}):S("Companion AdPlacementSupportedRenderer without adVideoId")}; fqa=function(a,b,c,d,e,f,h){if(!dqa(a))return new rF("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[eqa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=dQ(e.Sa.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",eb:"core"},r=new eQ(e.u,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",bd:new Map,Vd:[r],ud:[], td:[],Wd:[],eb:"core",ua:new vP([new jK(l)]),sd:n(p)}})]}; dqa=function(a){a=((null===a||void 0===a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1}; kqa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]}; if(!gqa(a))return function(){return new rF("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})}; var h=a.playerOverlay.instreamSurveyAdRenderer,l=hqa(h);return 0>=l?function(){return new rF("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=iqa(m,c,d,function(t){var w=n(t); t=t.slotId;t=dQ(e.Sa.get(),"LAYOUT_TYPE_SURVEY",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",eb:"core"},y=new eQ(e.u,d),B=new fQ(e.u,t),E=new gQ(e.u,t),G=new jqa(e.u);return{layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",bd:new Map,Vd:[y,G],ud:[B],td:[],Wd:[E],eb:"core",ua:new vP([new iK(h),new dK(b),new FK(l/1E3)]),sd:w(x),adLayoutLoggingData:h.adLayoutLoggingData}}),r=fqa(a,c,p.slotId,d,e,m,n); return r instanceof rF?r:[p].concat(g.la(r))}}; hqa=function(a){var b=0;a=g.q(a.questions);for(var c=a.next();!c.done;c=a.next())b+=c.value.instreamSurveyAdMultiSelectQuestionRenderer.surveyAdQuestionCommon.durationMilliseconds;return b}; gqa=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;if(!a||!a.questions||1!==a.questions.length)return!1;a=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer;if(null===a||void 0===a||!a.surveyAdQuestionCommon)return!1;a=(a.surveyAdQuestionCommon.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;var b=((null===a||void 0===a?void 0:a.adInfoRenderer)||{}).adHoverTextButtonRenderer;return((null===a||void 0===a?void 0:a.skipOrPreviewRenderer)|| {}).skipAdRenderer&&b?!0:!1}; nqa=function(a,b,c,d,e){var f=[];try{var h=[],l=lqa(a,d,function(t){t=mqa(t.slotId,c,b,e(t),d);h=t.vQ;return t.WH}); f.push(l);for(var m=g.q(h),n=m.next();!n.done;n=m.next()){var p=n.value,r=p(a,e);if(r instanceof rF)return r;f.push.apply(f,g.la(r))}}catch(t){return new rF(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f}; mqa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=f.adTimeOffset||{},l=h.offsetEndMilliseconds;h=Number(h.offsetStartMilliseconds);if(isNaN(h))throw new TypeError("Expected valid start offset");var m=Number(l);if(isNaN(m))throw new TypeError("Expected valid end offset");l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===l||void 0===l||!l.length)throw new TypeError("Expected linear ads");var n=[],p={QF:h,RF:0,sQ:n};l=l.map(function(t){return oqa(a,t,p,c,d,f,e,m)}).map(function(t, w){var x=new RH(w,n); return t(x)}); var r=l.map(function(t){return t.XH}); return{WH:pqa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),qqa(b),d,m),vQ:l.map(function(t){return t.uQ})}}; oqa=function(a,b,c,d,e,f,h,l){var m=b.instreamVideoAdRenderer;if(!m)throw new TypeError("Expected instream video ad renderer");if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=Bp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=rqa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.QF,t=c.RF,w=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(w)?b:Math.min(b, w/1E3),y=Math.min(r+1E3*x,l);c.QF=y;c.RF++;c.sQ.push(x);var B=m.pings?SH(m.pings):new Map;c=m.playerOverlay||{};var E=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(G){2<=G.B&&(n.slot_pos=G.u);n.autoplay="1";var J=m.adLayoutLoggingData,I=m.sodarExtensionData,Ca=dQ(d.Sa.get(),"LAYOUT_TYPE_MEDIA",a),ta={layoutId:Ca,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};G={layoutId:Ca,layoutType:"LAYOUT_TYPE_MEDIA",bd:B,Vd:[],ud:[],td:[],Wd:[],eb:"adapter",ua:new vP([new gK(h), new rK(x),new sK(n),new uK(r),new vK(y),new wK(t),new oK({current:null}),E&&new hK(E),new dK(f),new fK(p),new eK(G),I&&new tK(I)].filter(sqa)),sd:e(ta),adLayoutLoggingData:J};J=kqa(m,f,h,G.layoutId,d);return{XH:G,uQ:J}}}; rqa=function(a,b){var c=a.video_id;if(c||(c=b.externalVideoId))return c}; qqa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; uqa=function(a,b,c,d,e,f,h,l){a=tqa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=dQ(b.Sa.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",eb:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",bd:r,Vd:[new hQ(b.u,n)],ud:[],td:[],Wd:[],eb:"core",ua:new vP([new zK(e),new dK(c)]),sd:m(p)}}); return a instanceof rF?a:[a]}; wqa=function(a,b,c,d,e,f,h,l){a=vqa(a,c,f,h,d,function(m,n){var p=m.slotId,r=l(m),t=e.contentSupportedRenderer;t?t.textOverlayAdContentRenderer?(t=dQ(b.Sa.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),r=iQ(b,t,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,r,jQ(b,n,p))):t.enhancedTextOverlayAdContentRenderer?(t=dQ(b.Sa.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),r=iQ(b,t,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,r,jQ(b,n,p))):t.imageOverlayAdContentRenderer?(t=dQ(b.Sa.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),p=jQ(b,n,p),p.push(new kQ(b.u,t)),r=iQ(b,t,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,r,p)):r=new JP("InvideoOverlayAdRenderer without appropriate sub renderer"):r=new JP("InvideoOverlayAdRenderer without contentSupportedRenderer");return r}); return a instanceof rF?a:[a]}; xqa=function(a,b,c,d){if(!c.playerVars)return new rF("No playerVars available in AdIntroRenderer.");var e=Bp(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=dQ(a.Sa.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};return{rQ:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",bd:new Map,Vd:[],ud:[],td:[],Wd:[],eb:"adapter",ua:new vP([new yK({}),new dK(b),new oK({current:null}),new sK(e)]),sd:f(l)},PH:[new lQ(a.u,h)],OH:[]}}}; Bqa=function(a,b,c,d,e,f,h,l,m,n,p){function r(w){var x=new RH(0,[t.jr]),y=yqa(t.playerVars,t.nF,l,p,x);w=m(w);var B=n.get(t.Ku.externalVideoId);x=zqa(b,"core",t.Ku,c,y,t.jr,f,x,w,B);return{layoutId:x.layoutId,layoutType:x.layoutType,bd:x.bd,Vd:x.Vd,ud:x.ud,td:x.td,Wd:x.Wd,eb:x.eb,ua:x.ua,sd:x.sd,adLayoutLoggingData:x.adLayoutLoggingData}} var t=mQ(e);if(t instanceof JP)return new rF(t);if(r instanceof rF)return r;a=Aqa(a,c,f,h,d,r);return a instanceof rF?a:[a]}; mQ=function(a){if(!a.playerVars)return new JP("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null===(b=a.playerOverlay)||void 0===b?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new JP("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Bp(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new JP("Expected valid length seconds in player vars"): {Ku:a,playerVars:b,nF:a.playerVars,jr:c}}; yqa=function(a,b,c,d,e){a.iv_load_policy=d;b=Bp(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){S(f)}c.Wf&&(a.ctrl=c.Wf);c.bf&&(a.ytr=c.bf);c.jj&&(a.ytrcc=c.jj);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Ag&&(a.vss_credentials_token_type=c.Ag),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.B&&(a.slot_pos=e.u);a.autoplay="1";return a}; Dqa=function(a,b,c,d,e,f,h,l,m,n,p){if(null==e.linearAds)return new rF("Received invalid LinearAdSequenceRenderer.");b=Cqa(b,c,e,f,l,m,n,p);if(b instanceof rF)return new rF(b);a=Aqa(a,c,f,h,d,b);return a instanceof rF?a:[a]}; Cqa=function(a,b,c,d,e,f,h,l){return function(m){a:{b:{var n=[];for(var p=g.q(c.linearAds),r=p.next();!r.done;r=p.next())if(r=r.value,r.instreamVideoAdRenderer){r=mQ(r.instreamVideoAdRenderer);if(r instanceof JP){n=new rF(r);break b}n.push(r.jr)}}if(!(n instanceof rF)){p=0;r=[];for(var t=[],w=[],x=g.q(c.linearAds),y=x.next();!y.done;y=x.next())if(y=y.value,y.adIntroRenderer){y=xqa(a,b,y.adIntroRenderer,f);if(y instanceof rF){n=y;break a}y=y(m);r.push(y.rQ);t=[].concat(g.la(y.PH),g.la(t));w=[].concat(g.la(y.OH), g.la(w))}else if(y.instreamVideoAdRenderer){y=mQ(y.instreamVideoAdRenderer);if(y instanceof JP){n=new rF(y);break a}var B=new RH(p,n),E=yqa(y.playerVars,y.nF,e,l,B),G=f(m),J=h.get(y.Ku.externalVideoId);E=zqa(a,"adapter",y.Ku,b,E,y.jr,d,B,G,J);y={layoutId:E.layoutId,layoutType:E.layoutType,bd:E.bd,Vd:[],ud:[],td:[],Wd:[],eb:E.eb,ua:E.ua,sd:E.sd,adLayoutLoggingData:E.adLayoutLoggingData};B=E.ud;E=E.td;p++;r.push(y);t=[].concat(g.la(B),g.la(t));w=[].concat(g.la(E),g.la(w))}else{n=new rF("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}n={tQ:r,ud:t,td:w}}}r=n;r instanceof rF?m=r:(t=m.slotId,n=r.tQ,p=r.ud,r=r.td,m=f(m),t=dQ(a.Sa.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",t),w={layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",eb:"core"},m={layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bd:new Map,Vd:[new hQ(a.u,t)],ud:p,td:r,Wd:[],eb:"core",ua:new vP([new pK(n)]),sd:m(w)});return m}}; nQ=function(a,b,c,d,e,f){this.fb=a;this.zb=b;this.bb=c;this.u=d;this.gi=e;this.loadPolicy=void 0===f?1:f}; oF=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,w,x,y,B,E,G=[];if(0===b.length)return G;b=b.filter(qF);for(var J=new Map,I=new Map,Ca=g.q(b),ta=Ca.next();!ta.done;ta=Ca.next())(ta=ta.value.renderer.remoteSlotsRenderer)&&ta.hostElementId&&I.set(ta.hostElementId,ta);Ca=g.q(b);for(ta=Ca.next();!ta.done;ta=Ca.next()){ta=ta.value;var jb=Eqa(a,J,ta,d,e,f,h,I);jb instanceof rF?S(jb,void 0,void 0,{renderer:ta.renderer,config:ta.config.adPlacementConfig,kind:ta.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}): G.push.apply(G,g.la(jb))}if(null===a.u||f)return a=f&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),G.length||a||S("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(r=null===(p=b[0])||void 0===p?void 0:p.config)|| void 0===r?void 0:r.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(w=b[0])||void 0===w?void 0:w.renderer}),G;c=c.filter(qF);G.push.apply(G,g.la(aqa(J,c,a.fb.get(),a.u,d)));G.length||S("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(B=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===B?void 0:B.kind,renderer:null===(E=b[0])|| void 0===E?void 0:E.renderer});return G}; Eqa=function(a,b,c,d,e,f,h,l){function m(w){return AP(a.bb.get(),w)} var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)cQ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(w,x,y){var B=a.zb.get(),E=n.actionCompanionAdRenderer,G=AP(a.bb.get(),w);return oQ(B,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new WJ(E),x,y,E.impressionPings,E.impressionCommands,G,n.actionCompanionAdRenderer.adLayoutLoggingData)}); else if(n.imageCompanionAdRenderer)cQ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(w,x,y){var B=a.zb.get(),E=n.imageCompanionAdRenderer,G=AP(a.bb.get(),w);return oQ(B,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new $J(E),x,y,E.impressionPings,E.impressionCommands,G,n.imageCompanionAdRenderer.adLayoutLoggingData)}); else if(n.shoppingCompanionCarouselRenderer)cQ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(w,x,y){var B=a.zb.get(),E=n.shoppingCompanionCarouselRenderer,G=AP(a.bb.get(),w);return oQ(B,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new aK(E),x,y,E.impressionPings,E.impressionEndpoints,G,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)}); else{if(n.adBreakServiceRenderer){if(!uF(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.gi)return new rF("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");Fqa(a.gi,{adPlacementRenderer:c,contentCpn:d,EA:e});return[]}return via(a.fb.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return uqa(a.fb.get(),a.zb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return wqa(a.fb.get(), a.zb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return nqa(a.fb.get(),a.zb.get(),c,d,m);bQ(b,n,r);return Dqa(a.fb.get(),a.zb.get(),p,t,n.linearAdSequenceRenderer,d,e,h,m,l,a.loadPolicy)}if((!n.remoteSlotsRenderer||f)&&n.instreamVideoAdRenderer&&!f)return bQ(b,n,r),Bqa(a.fb.get(),a.zb.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy)}return[]}; pQ=function(a){g.C.call(this);this.u=a}; lF=function(a,b,c,d){a.u().Ng(b,d);c=c();a=a.u();qQ(a.Db,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.q(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;zJ(d.Db,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.u;if(g.nc(c.slotId))throw new rF("Slot ID was empty");if(HP(e,c))throw new rF("Duplicate registration for slot.");if(!e.Uc.qj.has(c.Za))throw new rF("No fulfillment adapter factory registered for slot of type: "+c.Za);if(!e.Uc.Tj.has(c.Za))throw new rF("No SlotAdapterFactory registered for slot of type: "+ c.Za);ZP(e,5,c.Xb?[c.Xb]:[]);ZP(e,4,c.Ce);ZP(e,3,c.tf);var f=d.u,h=c.Za+"_"+c.feedPosition,l=SP(f,h);if(HP(f,c))throw new rF("Duplicate slots not supported");l.set(c.slotId,new XP(c));f.u.set(h,l)}catch($d){S($d,c,void 0,void 0,$d.ll);break a}d.u.Om(c);try{var m=d.u,n=HP(m,c),p=c.Xb,r=m.Uc.wg.get(p.triggerType);r&&(r.Sg(5,p,c,null),n.X.set(p.triggerId,r));for(var t=g.q(c.Ce),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.Uc.wg.get(x.triggerType);y&&(y.Sg(4,x,c,null),n.P.set(x.triggerId,y))}for(var B= g.q(c.tf),E=B.next();!E.done;E=B.next()){var G=E.value,J=m.Uc.wg.get(G.triggerType);J&&(J.Sg(3,G,c,null),n.N.set(G.triggerId,J))}var I=m.Uc.qj.get(c.Za).get(),Ca=m.C,ta=c;var jb=rQ(ta,{qe:["metadata_type_fulfilled_layout"]})?new sQ(Ca,ta):I.u(Ca,ta);n.I=jb;var eb=m.Uc.Tj.get(c.Za).get().u(m.F,c);eb.init();n.B=eb}catch($d){S($d,c,void 0,void 0,$d.ll);EP(d,c,!0);break a}zJ(d.Db,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.u.tg(c);ta=g.q(d.B);for(var Xa=ta.next();!Xa.done;Xa=ta.next())Xa.value.tg(c); MP(d,c)}}; tQ=function(a,b,c,d){g.C.call(this);var e=this;this.rb=a;this.fb=b;this.yb=c;this.u=new Map;d.get().addListener(this);g.Wf(this,function(){d.get().removeListener(e)})}; sia=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.Ce),f=e.next();!f.done;f=e.next())f=f.value,f instanceof yF?(c=Math.min(c,f.C.start),d=Math.max(d,f.C.end)):S("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new tn(c,d);d="throttledadcuerange:"+b.slotId;a.u.set(d,b);a.yb.get().addCueRange(d,c.start,c.end,!1,a)}; uQ=function(){g.C.apply(this,arguments);this.wi=!0;this.u=new Map;this.B=new Map}; sO=function(a,b){for(var c=g.q(a.B.values()),d=c.next();!d.done;d=c.next()){d=g.q(d.value);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.layoutId===b)return e}S("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.nc(b)),layoutId:b})}; vQ=function(){this.B=new Map;this.u=new Map;this.C=new Map}; wQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return Ss()}; dQ=function(a,b,c){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.u.get(b)||0;d++;a.u.set(b,d);return c+"_"+b+"_"+d}return Ss()}; xQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return Ss()}; Gqa=function(a,b){this.layoutId=b;this.triggerType="trigger_type_close_requested";this.triggerId=a(this.triggerType)}; lQ=function(a,b){this.D=b;this.triggerType="trigger_type_layout_exited_for_reason";this.triggerId=a(this.triggerType)}; eQ=function(a,b){this.D=b;this.triggerType="trigger_type_layout_id_exited";this.triggerId=a(this.triggerType)}; Hqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; yQ=function(a,b){this.D=b;this.Za="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="trigger_type_on_different_layout_id_entered";this.triggerId=a(this.triggerType)}; zQ=function(a,b){this.D=b;this.Za="SLOT_TYPE_IN_PLAYER";this.triggerType="trigger_type_on_different_slot_id_enter_requested";this.triggerId=a(this.triggerType)}; hQ=function(a,b){this.layoutId=b;this.triggerType="trigger_type_on_layout_self_exit_requested";this.triggerId=a(this.triggerType)}; Iqa=function(a,b){this.opportunityType="opportunity_type_ad_break_service_response_received";this.associatedSlotId=b;this.triggerType="trigger_type_on_opportunity_received";this.triggerId=a(this.triggerType)}; jqa=function(a){this.triggerType="trigger_type_playback_minimized";this.triggerId=a(this.triggerType)}; fQ=function(a,b){this.C=b;this.triggerType="trigger_type_skip_requested";this.triggerId=a(this.triggerType)}; gQ=function(a,b){this.C=b;this.triggerType="trigger_type_survey_submitted";this.triggerId=a(this.triggerType)}; kQ=function(a,b){this.durationMs=45E3;this.layoutId=b;this.triggerType="trigger_type_time_relative_to_layout_enter";this.triggerId=a(this.triggerType)}; Jqa=function(a){return[new kK(a.Cu),new hK(a.instreamAdPlayerOverlayRenderer),new nK(a.OE),new dK(a.adPlacementConfig),new rK(a.videoLengthSeconds),new FK(a.EC)]}; Kqa=function(a,b,c,d,e,f){a=c.Kw?c.Kw:dQ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",eb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bd:new Map,Vd:[new eQ(function(l){return xQ(f,l)},c.Cu)], ud:[],td:[],Wd:[],eb:b,ua:d,sd:e(h),adLayoutLoggingData:c.adLayoutLoggingData}}; AQ=function(a,b){var c=this;this.za=a;this.Sa=b;this.u=function(d){return xQ(c.Sa.get(),d)}}; BQ=function(a,b,c,d,e){return Kqa(b,c,d,new vP(Jqa(d)),e,a.Sa.get())}; oQ=function(a,b,c,d,e,f,h,l,m,n){b=dQ(a.Sa.get(),c,b);var p={layoutId:b,layoutType:c,eb:"core"},r=new Map;h?r.set("impression",h):l&&S("Companion Ad Renderer without impression Pings but does have impressionCommands",void 0,void 0,{"impressionCommands length":l.length,adPlacementKind:f.kind,companionType:d.u()});return{layoutId:b,layoutType:c,bd:r,Vd:[new hQ(a.u,b),new yQ(a.u,e)],ud:[],td:[],Wd:[],eb:"core",ua:new vP([d,new dK(f),new kK(e)]),sd:m(p),adLayoutLoggingData:n}}; jQ=function(a,b,c){var d=[];d.push(new zQ(a.u,c));g.Q(a.za.get().J.T().experiments,"html5_make_pacf_in_video_overlay_evictable")||b&&d.push(b);return d}; iQ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,eb:"core"};return{layoutId:b,layoutType:c,bd:new Map,Vd:h,ud:[new Gqa(a.u,b)],td:[],Wd:[],eb:"core",ua:new vP([new ZJ(d),new dK(e)]),sd:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; zqa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",eb:b};d=[new dK(d),new eK(l),new fK(c.externalVideoId),new gK(h),new hK(c.playerOverlay.instreamAdPlayerOverlayRenderer),new HK({impressionCommands:c.impressionCommands,onAbandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands,adVideoProgressCommands:c.adVideoProgressCommands}),new sK(e),new oK({current:null}),new rK(f)];e=wQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");f=dQ(a.Sa.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY", e);d.push(new lK(f));d.push(new mK(e));c.adNextParams&&d.push(new XJ(c.adNextParams));c.clickthroughEndpoint&&d.push(new YJ(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new GK(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new tK(c.sodarExtensionData));n&&d.push(new EK(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",bd:SH(c.pings),Vd:[new hQ(a.u,p)],ud:c.skipOffsetMilliseconds?[new fQ(a.u,f)]:[],td:[new fQ(a.u,f)],Wd:[],eb:b,ua:new vP(d),sd:m(r),adLayoutLoggingData:c.adLayoutLoggingData}}; pqa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return uP(p,[],["LAYOUT_TYPE_MEDIA"])})||S("Unexpect subLayout type for DAI composite layout"); b=dQ(a.Sa.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",eb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bd:f,Vd:[new Hqa(a.u)],ud:[],td:[],Wd:[],eb:"core",ua:new vP([new uK(c),new vK(m),new pK(d),new dK(e),new AK(h)]),sd:l(n)}}; sqa=function(a){return null!=a}; CQ=function(a,b,c){this.B=b;this.visible=c;this.triggerType="trigger_type_after_content_video_id_ended";this.triggerId=a(this.triggerType)}; DQ=function(a,b,c){this.layoutId=b;this.slotId=c;this.triggerType="trigger_type_layout_id_active_and_slot_id_has_exited";this.triggerId=a(this.triggerType)}; Lqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)}; EQ=function(a,b,c){this.B=b;this.C=c;this.triggerType="trigger_type_not_in_media_time_range";this.triggerId=a(this.triggerType)}; FQ=function(a,b){this.C=b;this.triggerType="trigger_type_on_new_playback_after_content_video_id";this.triggerId=a(this.triggerType)}; GQ=function(a,b){this.slotId=b;this.triggerType="trigger_type_on_element_self_enter_requested";this.triggerId=a(this.triggerType)}; HQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_entered";this.triggerId=a(this.triggerType)}; IQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_exited";this.triggerId=a(this.triggerType)}; JQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_empty";this.triggerId=a(this.triggerType)}; KQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_non_empty";this.triggerId=a(this.triggerType)}; LQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_scheduled";this.triggerId=a(this.triggerType)}; MQ=function(a){var b=this;this.Sa=a;this.u=function(c){return xQ(b.Sa.get(),c)}}; tF=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=wQ(a.Sa.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Xm&&d.Xm.start!==d.Qg.start&&l.push(new yF(a.u,c,new tn(d.Xm.start,d.Qg.start),!1));l.push(new yF(a.u,c,new tn(d.Qg.start,d.Qg.end),d.fu));d={getAdBreakUrl:b.getAdBreakUrl,mF:d.Qg.start,lF:d.Qg.end};b=new KQ(a.u,h);f=[new CK(d)].concat(g.la(f));return{slotId:h,Za:"SLOT_TYPE_AD_BREAK_REQUEST",feedPosition:1,Xb:b,Ce:l,tf:[new FQ(a.u,c),new IQ(a.u,h),new JQ(a.u,h)],eb:"core",ua:new vP(f),adSlotLoggingData:e}}; Nqa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(Mqa(a,b,e.value));return d}; Mqa=function(a,b,c){return null!=c.u&&c.u===a?c.clone(b):c}; Oqa=function(a,b,c,d,e){e=e?e:wQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");c=new xF(a.u,c);var f={slotId:e,Za:"SLOT_TYPE_IN_PLAYER",feedPosition:1,eb:"core",Xb:c};return{slotId:e,Za:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Xb:c,Ce:[new HQ(a.u,e)],tf:[new FQ(a.u,b),new IQ(a.u,e)],eb:"core",ua:new vP([new BK(d(f))])}}; vqa=function(a,b,c,d,e,f){var h=NQ(a,b,c,d);if(h instanceof rF)return h;h instanceof yF&&(h=new yF(a.u,h.B,h.C,h.visible,h.D,!0));d=h instanceof yF?new EQ(a.u,c,h.C):null;b=wQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");f=f({slotId:b,Za:"SLOT_TYPE_IN_PLAYER",feedPosition:1,eb:"core",Xb:h},d);return f instanceof JP?new rF(f):{slotId:b,Za:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Xb:h,Ce:[new HQ(a.u,b)],tf:[new FQ(a.u,c),new IQ(a.u,b)],eb:"core",ua:new vP([new BK(f)]),adSlotLoggingData:e}}; iqa=function(a,b,c,d){var e=wQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");c=new xF(a.u,c);var f={slotId:e,Za:"SLOT_TYPE_IN_PLAYER",feedPosition:1,eb:"core",Xb:c};return{slotId:e,Za:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Xb:c,Ce:[new HQ(a.u,e)],tf:[new FQ(a.u,b),new IQ(a.u,e)],eb:"core",ua:new vP([new BK(d(f))])}}; eqa=function(a,b,c,d,e){var f=wQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");c=new DQ(a.u,d,c);d={slotId:f,Za:"SLOT_TYPE_IN_PLAYER",feedPosition:1,eb:"core",Xb:c};return{slotId:f,Za:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Xb:c,Ce:[new HQ(a.u,f)],tf:[new FQ(a.u,b)],eb:"core",ua:new vP([new BK(e(d))])}}; $pa=function(a,b,c,d,e,f){var h=wQ(a.Sa.get(),b);return Pqa(a,h,b,new xF(a.u,d),c,e,f)}; Zpa=function(a,b,c,d,e,f){return Pqa(a,c,b,new GQ(a.u,c),d,e,f)}; lqa=function(a,b,c){var d=wQ(a.Sa.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new Lqa(a.u),f={slotId:d,Za:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,eb:"core",Xb:e};return{slotId:d,Za:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Xb:e,Ce:[new LQ(a.u,d)],tf:[new FQ(a.u,b)],eb:"core",ua:new vP([new BK(c(f)),new xK({})])}}; Aqa=function(a,b,c,d,e,f){var h=wQ(a.Sa.get(),"SLOT_TYPE_PLAYER_BYTES");b=NQ(a,b,c,d);if(b instanceof rF)return b;f=f({slotId:h,Za:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,eb:"core",Xb:b});return f instanceof rF?f:{slotId:h,Za:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Xb:b,Ce:[new HQ(a.u,h)],tf:[new IQ(a.u,h),new FQ(a.u,c)],eb:"core",ua:new vP([new BK(f)]),adSlotLoggingData:e}}; tqa=function(a,b,c,d,e,f){var h=wQ(a.Sa.get(),"SLOT_TYPE_FORECASTING");b=NQ(a,b,c,d);if(b instanceof rF)return b;d={slotId:h,Za:"SLOT_TYPE_FORECASTING",feedPosition:1,eb:"core",Xb:b};return{slotId:h,Za:"SLOT_TYPE_FORECASTING",feedPosition:1,Xb:b,Ce:[new HQ(a.u,h)],tf:[new IQ(a.u,h),new FQ(a.u,c)],eb:"core",ua:new vP([new BK(f(d))]),adSlotLoggingData:e}}; NQ=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new vF(a.u,c);case "AD_PLACEMENT_KIND_MILLISECONDS":b=sF(b,d);if(b instanceof rF)return b;b=b.Qg;return new yF(a.u,c,b,e,b.end===d);case "AD_PLACEMENT_KIND_END":return new CQ(a.u,c,e);default:return new rF("Cannot construct entry trigger",{kind:b.kind})}}; Pqa=function(a,b,c,d,e,f,h){var l={slotId:b,Za:c,feedPosition:1,eb:"core",Xb:d};return{slotId:b,Za:c,feedPosition:1,Xb:d,Ce:[new LQ(a.u,b)],tf:[new FQ(a.u,e),new IQ(a.u,b)],eb:"core",ua:new vP([new BK(h(l))]),adSlotLoggingData:f}}; OQ=function(a,b,c){g.C.call(this);this.za=a;this.u=b;this.Ba=c;this.eventCount=0}; zJ=function(a,b,c){qQ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)}; IP=function(a,b,c,d){qQ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)}; Kpa=function(a,b,c,d){g.Q(a.za.get().J.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&qQ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,void 0,d?d.adLayoutLoggingData:void 0)}; qQ=function(a,b,c,d,e,f,h,l,m,n){if(g.Q(a.za.get().J.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.Q(a.za.get().J.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=zP(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var r=g.P(a.za.get().J.T().experiments,"html5_experiment_id_label"),t={organicPlaybackContext:{contentCpn:nF(a.Ba.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=nF(a.Ba.get(),1).Kg;0=.25*e||c)&&rO(a.Ga,"first_quartile"),(b>=.5*e||c)&&rO(a.Ga,"midpoint"),(b>=.75*e||c)&&rO(a.Ga,"third_quartile")}; rra=function(a,b){vL(a.Kc.get(),wO(a.layout.ua,"metadata_type_ad_placement_config").kind,b,a.position,a.N,!1)}; DR=function(a,b,c,d,e){vR.call(this,a,b,c,d);this.u=e}; tra=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,B,E){if(lR(d,{qe:["metadata_type_sub_layouts"],og:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var G=wO(d.ua,"metadata_type_sub_layouts");a=new wR(a,n,r,w,b,c,d,f);b=[];for(var J={kl:0};J.kl=e||0>=c||g.U(b,16)||g.U(b,32)||(AR(c,.25*e,d)&&rO(a.Ga,"first_quartile"),AR(c,.5*e,d)&&rO(a.Ga,"midpoint"),AR(c,.75*e,d)&&rO(a.Ga,"third_quartile"))}; Mra=function(a){return Object.assign(Object.assign({},bS(a)),{adPlacementConfig:wO(a.ua,"metadata_type_ad_placement_config"),subLayouts:wO(a.ua,"metadata_type_sub_layouts").map(bS)})}; bS=function(a){return{enterMs:wO(a.ua,"metadata_type_layout_enter_ms"),exitMs:wO(a.ua,"metadata_type_layout_exit_ms")}}; cS=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,B){this.be=a;this.B=b;this.Ba=c;this.Uf=d;this.ra=e;this.Ea=f;this.Jc=h;this.Td=l;this.gb=m;this.nd=n;this.Oc=p;this.yb=r;this.Kc=t;this.Wc=w;this.pd=x;this.dc=y;this.wd=B}; dS=function(a,b,c,d,e,f,h){g.C.call(this);var l=this;this.rb=a;this.fb=b;this.Ba=c;this.Td=e;this.ra=f;this.za=h;this.u=null;d.get().addListener(this);g.Wf(this,function(){d.get().removeListener(l)}); e.get().addListener(this);g.Wf(this,function(){e.get().removeListener(l)})}; Fqa=function(a,b){if(nF(a.Ba.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.u)S("Unexpected multiple fetch instructions for the current content");else{a.u=b;for(var c=g.q(a.Td.get().u),d=c.next();!d.done;d=c.next())Nra(a,a.u,d.value)}}; Nra=function(a,b,c){var d=TP(a.ra.get(),1,!1);lF(a.rb.get(),"opportunity_type_live_stream_break_signal",function(){var e=a.fb.get(),f=g.Q(a.za.get().J.T().experiments,"enable_server_stitched_dai");var h=1E3*c.startSecs;h={Qg:new tn(h,h+1E3*c.durationSecs),fu:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new tn(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new tn(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.Xm=f;return[tF(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer, b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new qK(c)])]})}; eS=function(a,b){var c;g.C.call(this);var d=this;this.D=a;this.B=new Map;this.C=new Map;this.u=null;b.get().addListener(this);g.Wf(this,function(){b.get().removeListener(d)}); this.u=(null===(c=b.get().u)||void 0===c?void 0:c.slotId)||null}; Ora=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.slot.slotId===b&&c.push(e);return c}; fS=function(a,b,c,d){g.C.call(this);this.J=a;this.Ba=b;this.za=c;this.Ea=d;this.listeners=[];this.B=new Set;this.u=[];this.D=new hL(this,Uqa(c.get()));this.C=new iL;Pra(this)}; Ira=function(a,b,c){return jL(a.C,b,c)}; Pra=function(a){var b,c=a.J.getVideoData(1);c.subscribe("cuepointupdated",a.Qx,a);a.B.clear();a.u.length=0;c=(null===(b=c.na)||void 0===b?void 0:LA(b,0))||[];a.Qx(c)}; Qra=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:throw Error("Unexpected cuepoint event");}}; Rra=function(a){this.J=a}; Tra=function(a,b,c){Sra(a.J,b,c)}; gS=function(){this.listeners=new Set}; hS=function(a,b,c,d,e,f,h,l){oR.call(this,a,b,c,d);this.Ea=e;this.be=f;this.Dd=l;this.wi=!0;this.jh=null;this.zo="image-companion";this.Ei=wO(c.ua,"metadata_type_linked_player_bytes_layout_id");DP(this.be(),this);a=wO(c.ua,"metadata_type_ad_placement_config");this.Ga=new mO(c.bd,this.Ea,a,c.layoutId)}; Ura=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];nO().forEach(function(b){a.push(b)}); return{qe:a,og:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; iS=function(a,b,c,d,e,f,h,l){oR.call(this,a,b,c,d);this.Ea=e;this.be=f;this.Dd=l;this.wi=!0;this.jh=null;this.zo="shopping-companion";this.Ei=wO(c.ua,"metadata_type_linked_player_bytes_layout_id");DP(this.be(),this);a=wO(c.ua,"metadata_type_ad_placement_config");this.Ga=new mO(c.bd,this.Ea,a,c.layoutId)}; Vra=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];nO().forEach(function(b){a.push(b)}); return{qe:a,og:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; Wra=function(a,b,c,d,e){this.Pb=a;this.Ea=b;this.be=c;this.Dd=d;this.gb=e}; jS=function(a,b,c,d,e,f,h,l,m,n){oR.call(this,f,a,b,e);this.Ea=c;this.B=h;this.ra=l;this.dc=m;this.za=n;this.Ga=Yoa(b,c)}; Xra=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];nO().forEach(function(b){a.push(b)}); return{qe:a,og:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; kS=function(a,b,c,d,e,f,h,l,m,n,p){oR.call(this,f,a,b,e);this.Ea=c;this.B=h;this.D=l;this.ra=m;this.dc=n;this.za=p;this.Ga=Yoa(b,c)}; lS=function(a,b,c,d,e,f,h,l,m){this.Pb=a;this.ra=b;this.Ea=c;this.Dd=d;this.gb=e;this.B=f;this.C=h;this.dc=l;this.za=m}; mS=function(a){g.C.call(this);this.u=a;this.kb=new Map}; nS=function(a,b){for(var c=[],d=g.q(a.kb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.layoutId===b.layoutId&&c.push(e);c.length&&PP(a.u(),c)}; oS=function(a){g.C.call(this);this.C=a;this.wi=!0;this.kb=new Map;this.u=new Map;this.B=new Map}; Yra=function(a,b){var c=[],d=a.u.get(b.layoutId);if(d){d=g.q(d);for(var e=d.next();!e.done;e=d.next())(e=a.B.get(e.value.triggerId))&&c.push(e)}return c}; pS=function(a,b,c){g.C.call(this);this.C=a;this.Di=b;this.Sa=c;this.u=this.B=void 0;this.Di.get().addListener(this)}; Zra=function(a,b,c,d,e){g.C.call(this);var f=this;this.Sa=X(function(){return new vQ}); g.D(this,this.Sa);this.zb=X(function(){return new AQ(f.za,f.Sa)}); g.D(this,this.zb);this.Fb=X(function(){return new uQ}); g.D(this,this.Fb);this.rb=X(function(){return new pQ(a)}); g.D(this,this.rb);this.fb=X(function(){return new MQ(f.Sa)}); g.D(this,this.fb);this.Jc=X(function(){return new PQ}); g.D(this,this.Jc);this.pd=X(function(){return new RI(b.T())}); g.D(this,this.pd);this.Pb=X(function(){return new UR(b)}); g.D(this,this.Pb);this.dc=X(function(){return new fR(e)}); g.D(this,this.dc);this.Kc=X(function(){return new tL(b)}); g.D(this,this.Kc);this.yb=X(function(){return new RQ(b)}); g.D(this,this.yb);this.Oc=X(function(){return new WR(b)}); g.D(this,this.Oc);this.Wc=X(function(){return new YR(b)}); g.D(this,this.Wc);this.za=X(function(){return new SQ(b)}); g.D(this,this.za);this.cd=X(function(){return new TR(d,f.za)}); g.D(this,this.cd);this.bb=X(function(){return new BP(f.za)}); g.D(this,this.bb);this.pc=X(function(){return new nQ(f.fb,f.zb,f.bb,"SLOT_TYPE_ABOVE_FEED",f.gi)}); g.D(this,this.pc);this.wd=X(function(){return new ZR(b)}); g.D(this,this.wd);this.Ed=X(function(){return new $R}); g.D(this,this.Ed);this.Di=X(function(){return new gS}); g.D(this,this.Di);this.Ba=X(function(){return new dR(b,f.Jc)}); g.D(this,this.Ba);this.Db=new OQ(this.za,this.bb,this.Ba);g.D(this,this.Db);this.Td=X(function(){return new fS(b,f.Ba,f.za,f.Ea)}); g.D(this,this.Td);this.Uf=X(function(){return new Rra(b)}); g.D(this,this.Uf);this.ra=X(function(){return new eR(b)}); g.D(this,this.ra);this.nd=X(function(){return new gR}); this.gb=X(function(){return new VQ(f.ra,b)}); g.D(this,this.gb);this.Ea=X(function(){return new YQ(b,f.Fb,f.gb,f.Ba)}); g.D(this,this.Ea);this.Ye=new FR(GR,qS,function(l,m,n,p){return BQ(f.zb.get(),l,m,n,p)},this.rb,this.fb,this.bb,this.za,this.Ba); g.D(this,this.Ye);this.Kb=new BF(this.rb,this.pc,c,this.za,a,this.Ba);g.D(this,this.Kb);var h=new QQ(b,this.Kb,this.ra,this.za,this.Td);this.Kd=X(function(){return h}); this.Mj=h;this.gi=new dS(this.rb,this.fb,this.Ba,this.Kd,this.Td,this.ra,this.za);g.D(this,this.gi);this.Vc=new tQ(this.rb,this.fb,this.yb,this.Kd);g.D(this,this.Vc);this.Mb=new kF(this.rb,this.fb,this.pc,this.Ba,this.Vc,c);g.D(this,this.Mb);this.He=X(function(){return new jR(f.cd,f.zb,f.bb,f.za)}); g.D(this,this.He);this.uc=X(function(){return new kR}); g.D(this,this.uc);this.qd=new LR(a,this.Pb);g.D(this,this.qd);this.Ua=new MR(a);g.D(this,this.Ua);this.yl=new mS(a);g.D(this,this.yl);this.rd=new NR(a,this.Kd);g.D(this,this.rd);this.gd=new OR(a,this.yb,this.ra,this.Ba);g.D(this,this.gd);this.Xl=new eS(a,this.Ba);g.D(this,this.Xl);this.Wb=new QR(a);g.D(this,this.Wb);this.We=new RR(a);g.D(this,this.We);this.zm=new oS(a);g.D(this,this.zm);this.qc=X(function(){return new HR}); g.D(this,this.qc);this.Ze=X(function(){return new IR(f.ra)}); g.D(this,this.Ze);this.Wz=X(function(){return new Wra(f.Pb,f.Ea,a,f.Fb,f.gb)}); g.D(this,this.Wz);this.Ge=X(function(){return new mR(f.Mb)}); g.D(this,this.Ge);this.Ie=X(function(){return new nR(f.Ea,f.Wb,f.gb)}); g.D(this,this.Ie);this.Xe=X(function(){return new cS(a,f.Wb,f.Ba,f.Uf,f.ra,f.Ea,f.Jc,f.Td,f.gb,f.nd,f.Oc,f.yb,f.Kc,f.Wc,f.pd,f.dc,f.wd)}); g.D(this,this.Xe);this.qh=X(function(){return new lS(f.Pb,f.ra,f.Ea,f.Fb,f.gb,f.yl,f.zm,f.dc,f.za)}); g.D(this,this.qh);this.ev=new pS(a,this.Di,this.Sa);g.D(this,this.ev);this.Oj=new SR(a,this.Ed,this.bb,this.Ba,this.za,this.Sa);g.D(this,this.Oj);this.Uc={jm:new Map([["opportunity_type_ad_break_service_response_received",this.Mb],["opportunity_type_live_stream_break_signal",this.gi],["opportunity_type_player_bytes_media_layout_entered",this.Ye],["opportunity_type_player_response_received",this.Kb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Vc]]),qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.He],["SLOT_TYPE_ABOVE_FEED",this.uc],["SLOT_TYPE_FORECASTING",this.uc],["SLOT_TYPE_IN_PLAYER",this.uc],["SLOT_TYPE_PLAYER_BYTES",this.uc]]),wg:new Map([["trigger_type_skip_requested",this.qd],["trigger_type_layout_id_entered",this.Ua],["trigger_type_layout_id_exited",this.Ua],["trigger_type_layout_exited_for_reason",this.Ua],["trigger_type_on_different_layout_id_entered",this.Ua],["trigger_type_slot_id_entered",this.Ua],["trigger_type_slot_id_exited",this.Ua],["trigger_type_slot_id_fulfilled_empty", this.Ua],["trigger_type_slot_id_fulfilled_non_empty",this.Ua],["trigger_type_slot_id_scheduled",this.Ua],["trigger_type_on_different_slot_id_enter_requested",this.Ua],["trigger_type_close_requested",this.yl],["trigger_type_before_content_video_id_started",this.rd],["trigger_type_after_content_video_id_ended",this.gd],["trigger_type_media_time_range",this.gd],["trigger_type_not_in_media_time_range",this.gd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Xl],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED", this.Xl],["trigger_type_on_layout_self_exit_requested",this.Wb],["trigger_type_on_element_self_enter_requested",this.Wb],["trigger_type_on_new_playback_after_content_video_id",this.rd],["trigger_type_on_opportunity_received",this.We],["trigger_type_time_relative_to_layout_enter",this.zm]]),Tj:new Map([["SLOT_TYPE_ABOVE_FEED",this.qc],["SLOT_TYPE_AD_BREAK_REQUEST",this.qc],["SLOT_TYPE_FORECASTING",this.qc],["SLOT_TYPE_IN_PLAYER",this.qc],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),Dj:new Map([["SLOT_TYPE_ABOVE_FEED", this.Wz],["SLOT_TYPE_AD_BREAK_REQUEST",this.Ge],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_PLAYER_BYTES",this.Xe],["SLOT_TYPE_IN_PLAYER",this.qh]])};this.listeners=[this.Fb.get()];this.Ae={Mb:this.Mb,Zh:this.Wb,Fj:this.Ed.get(),hg:this.za.get(),Sk:this.ra.get(),Kb:this.Kb,Ej:this.Di.get(),Fh:this.qd,ng:this.Fb.get()}}; $ra=function(a,b,c,d,e){g.C.call(this);var f=this;this.Sa=X(function(){return new vQ}); g.D(this,this.Sa);this.zb=X(function(){return new AQ(f.za,f.Sa)}); g.D(this,this.zb);this.Fb=X(function(){return new uQ}); g.D(this,this.Fb);this.rb=X(function(){return new pQ(a)}); g.D(this,this.rb);this.fb=X(function(){return new MQ(f.Sa)}); g.D(this,this.fb);this.Jc=X(function(){return new PQ}); g.D(this,this.Jc);this.pd=X(function(){return new RI(b.T())}); g.D(this,this.pd);this.Pb=X(function(){return new UR(b)}); g.D(this,this.Pb);this.dc=X(function(){return new fR(e)}); g.D(this,this.dc);this.Kc=X(function(){return new tL(b)}); g.D(this,this.Kc);this.yb=X(function(){return new RQ(b)}); g.D(this,this.yb);this.Oc=X(function(){return new WR(b)}); g.D(this,this.Oc);this.Wc=X(function(){return new YR(b)}); g.D(this,this.Wc);this.za=X(function(){return new SQ(b)}); g.D(this,this.za);this.cd=X(function(){return new TR(d,f.za)}); g.D(this,this.cd);this.bb=X(function(){return new BP(f.za)}); g.D(this,this.bb);this.pc=X(function(){return new nQ(f.fb,f.zb,f.bb,null,null)}); g.D(this,this.pc);this.wd=X(function(){return new ZR(b)}); g.D(this,this.wd);this.Ed=X(function(){return new $R}); g.D(this,this.Ed);this.Di=X(function(){return new gS}); g.D(this,this.Di);this.Ba=X(function(){return new dR(b,f.Jc)}); g.D(this,this.Ba);this.Db=new OQ(this.za,this.bb,this.Ba);g.D(this,this.Db);this.ra=X(function(){return new eR(b)}); g.D(this,this.ra);this.gb=X(function(){return new VQ(f.ra,b)}); g.D(this,this.gb);this.Ea=X(function(){return new YQ(b,f.Fb,f.gb,f.Ba)}); g.D(this,this.Ea);this.nd=X(function(){return new gR}); g.D(this,this.nd);this.Ye=new FR(GR,qS,function(l,m,n,p){return BQ(f.zb.get(),l,m,n,p)},this.rb,this.fb,this.bb,this.za,this.Ba); g.D(this,this.Ye);this.Kb=new BF(this.rb,this.pc,c,this.za,a,this.Ba);g.D(this,this.Kb);var h=new QQ(b,this.Kb,this.ra,this.za);this.Kd=X(function(){return h}); this.Mj=h;this.Vc=new tQ(this.rb,this.fb,this.yb,this.Kd);g.D(this,this.Vc);this.Mb=new kF(this.rb,this.fb,this.pc,this.Ba,this.Vc,c);g.D(this,this.Mb);this.He=X(function(){return new jR(f.cd,f.zb,f.bb,f.za)}); g.D(this,this.He);this.uc=X(function(){return new kR}); g.D(this,this.uc);this.qd=new LR(a,this.Pb);g.D(this,this.qd);this.Ua=new MR(a);g.D(this,this.Ua);this.yl=new mS(a);g.D(this,this.yl);this.rd=new NR(a,this.Kd);g.D(this,this.rd);this.gd=new OR(a,this.yb,this.ra,this.Ba);g.D(this,this.gd);this.Wb=new QR(a);g.D(this,this.Wb);this.We=new RR(a);g.D(this,this.We);this.zm=new oS(a);g.D(this,this.zm);this.qc=X(function(){return new HR}); g.D(this,this.qc);this.Ze=X(function(){return new IR(f.ra)}); g.D(this,this.Ze);this.Ge=X(function(){return new mR(f.Mb)}); g.D(this,this.Ge);this.Ie=X(function(){return new nR(f.Ea,f.Wb,f.gb)}); g.D(this,this.Ie);this.qh=X(function(){return new lS(f.Pb,f.ra,f.Ea,f.Fb,f.gb,f.yl,f.zm,f.dc,f.za)}); g.D(this,this.qh);this.Xe=X(function(){return new ER(a,f.Wb,f.Ea,f.gb,f.nd,f.Oc,f.Ba,f.ra,f.yb,f.Kc,f.Wc,f.pd,f.dc,f.wd)}); g.D(this,this.Xe);this.ev=new pS(a,this.Di,this.Sa);g.D(this,this.ev);this.Oj=new SR(a,this.Ed,this.bb,this.Ba,this.za,this.Sa);g.D(this,this.Oj);this.Uc={jm:new Map([["opportunity_type_ad_break_service_response_received",this.Mb],["opportunity_type_player_bytes_media_layout_entered",this.Ye],["opportunity_type_player_response_received",this.Kb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Vc]]),qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.He],["SLOT_TYPE_FORECASTING",this.uc], ["SLOT_TYPE_IN_PLAYER",this.uc],["SLOT_TYPE_PLAYER_BYTES",this.uc]]),wg:new Map([["trigger_type_skip_requested",this.qd],["trigger_type_layout_id_entered",this.Ua],["trigger_type_layout_id_exited",this.Ua],["trigger_type_layout_exited_for_reason",this.Ua],["trigger_type_on_different_layout_id_entered",this.Ua],["trigger_type_slot_id_entered",this.Ua],["trigger_type_slot_id_exited",this.Ua],["trigger_type_slot_id_fulfilled_empty",this.Ua],["trigger_type_slot_id_fulfilled_non_empty",this.Ua],["trigger_type_slot_id_scheduled", this.Ua],["trigger_type_on_different_slot_id_enter_requested",this.Ua],["trigger_type_close_requested",this.yl],["trigger_type_before_content_video_id_started",this.rd],["trigger_type_after_content_video_id_ended",this.gd],["trigger_type_media_time_range",this.gd],["trigger_type_not_in_media_time_range",this.gd],["trigger_type_on_layout_self_exit_requested",this.Wb],["trigger_type_on_element_self_enter_requested",this.Wb],["trigger_type_on_new_playback_after_content_video_id",this.rd],["trigger_type_on_opportunity_received", this.We],["trigger_type_time_relative_to_layout_enter",this.zm]]),Tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qc],["SLOT_TYPE_FORECASTING",this.qc],["SLOT_TYPE_IN_PLAYER",this.qc],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),Dj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ge],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_IN_PLAYER",this.qh],["SLOT_TYPE_PLAYER_BYTES",this.Xe]])};this.listeners=[this.Fb.get()];this.Ae={Mb:this.Mb,Zh:null,Fj:this.Ed.get(),hg:this.za.get(),Sk:this.ra.get(),Kb:this.Kb,Ej:this.Di.get(), Fh:this.qd,ng:this.Fb.get()}}; asa=function(a,b,c,d,e){g.C.call(this);var f=this;this.Sa=X(function(){return new vQ}); g.D(this,this.Sa);this.zb=X(function(){return new AQ(f.za,f.Sa)}); g.D(this,this.zb);this.Fb=X(function(){return new uQ}); g.D(this,this.Fb);this.rb=X(function(){return new pQ(a)}); g.D(this,this.rb);this.fb=X(function(){return new MQ(f.Sa)}); g.D(this,this.fb);this.Jc=X(function(){return new PQ}); g.D(this,this.Jc);this.pd=X(function(){return new RI(b.T())}); g.D(this,this.pd);this.Pb=X(function(){return new UR(b)}); g.D(this,this.Pb);this.dc=X(function(){return new fR(e)}); g.D(this,this.dc);this.Kc=X(function(){return new tL(b)}); g.D(this,this.Kc);this.yb=X(function(){return new RQ(b)}); g.D(this,this.yb);this.Oc=X(function(){return new WR(b)}); g.D(this,this.Oc);this.Wc=X(function(){return new YR(b)}); g.D(this,this.Wc);this.za=X(function(){return new SQ(b)}); g.D(this,this.za);this.cd=X(function(){return new TR(d,f.za)}); g.D(this,this.cd);this.bb=X(function(){return new BP(f.za)}); g.D(this,this.bb);this.pc=X(function(){return new nQ(f.fb,f.zb,f.bb,null,null)}); g.D(this,this.pc);this.wd=X(function(){return new ZR(b)}); g.D(this,this.wd);this.Ed=X(function(){return new $R}); g.D(this,this.Ed);this.Ba=X(function(){return new dR(b,f.Jc)}); g.D(this,this.Ba);this.Db=new OQ(this.za,this.bb,this.Ba);g.D(this,this.Db);this.ra=X(function(){return new eR(b)}); g.D(this,this.ra);this.gb=X(function(){return new VQ(f.ra,b)}); g.D(this,this.gb);this.Ea=X(function(){return new YQ(b,f.Fb,f.gb,f.Ba)}); g.D(this,this.Ea);this.nd=X(function(){return new gR}); g.D(this,this.nd);this.Ye=new FR(GR,qS,function(l,m,n,p){return BQ(f.zb.get(),l,m,n,p)},this.rb,this.fb,this.bb,this.za,this.Ba); g.D(this,this.Ye);this.Kb=new BF(this.rb,this.pc,c,this.za,a,this.Ba);g.D(this,this.Kb);var h=new QQ(b,this.Kb,this.ra,this.za);this.Kd=X(function(){return h}); this.Mj=h;this.Vc=new tQ(this.rb,this.fb,this.yb,this.Kd);g.D(this,this.Vc);this.Mb=new kF(this.rb,this.fb,this.pc,this.Ba,this.Vc,c);g.D(this,this.Mb);this.He=X(function(){return new jR(f.cd,f.zb,f.bb,f.za)}); g.D(this,this.He);this.uc=X(function(){return new kR}); g.D(this,this.uc);this.qd=new LR(a,this.Pb);g.D(this,this.qd);this.Ua=new MR(a);g.D(this,this.Ua);this.rd=new NR(a,this.Kd);g.D(this,this.rd);this.gd=new OR(a,this.yb,this.ra,this.Ba);g.D(this,this.gd);this.Wb=new QR(a);g.D(this,this.Wb);this.We=new RR(a);g.D(this,this.We);this.qc=X(function(){return new HR}); g.D(this,this.qc);this.Ze=X(function(){return new IR(f.ra)}); g.D(this,this.Ze);this.Ge=X(function(){return new mR(f.Mb)}); g.D(this,this.Ge);this.Ie=X(function(){return new nR(f.Ea,f.Wb,f.gb)}); g.D(this,this.Ie);this.HE=X(function(){return new uR(f.Pb,f.ra,f.Ea,f.Fb)}); g.D(this,this.HE);this.Xe=X(function(){return new ER(a,f.Wb,f.Ea,f.gb,f.nd,f.Oc,f.Ba,f.ra,f.yb,f.Kc,f.Wc,f.pd,f.dc,f.wd)}); g.D(this,this.Xe);this.Oj=new SR(a,this.Ed,this.bb,this.Ba,this.za,this.Sa);g.D(this,this.Oj);this.Uc={jm:new Map([["opportunity_type_ad_break_service_response_received",this.Mb],["opportunity_type_player_bytes_media_layout_entered",this.Ye],["opportunity_type_player_response_received",this.Kb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Vc]]),qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.He],["SLOT_TYPE_FORECASTING",this.uc],["SLOT_TYPE_IN_PLAYER",this.uc],["SLOT_TYPE_PLAYER_BYTES", this.uc]]),wg:new Map([["trigger_type_skip_requested",this.qd],["trigger_type_layout_id_entered",this.Ua],["trigger_type_layout_id_exited",this.Ua],["trigger_type_layout_exited_for_reason",this.Ua],["trigger_type_on_different_layout_id_entered",this.Ua],["trigger_type_slot_id_entered",this.Ua],["trigger_type_slot_id_exited",this.Ua],["trigger_type_slot_id_fulfilled_empty",this.Ua],["trigger_type_slot_id_fulfilled_non_empty",this.Ua],["trigger_type_slot_id_scheduled",this.Ua],["trigger_type_before_content_video_id_started", this.rd],["trigger_type_after_content_video_id_ended",this.gd],["trigger_type_media_time_range",this.gd],["trigger_type_on_layout_self_exit_requested",this.Wb],["trigger_type_on_element_self_enter_requested",this.Wb],["trigger_type_on_new_playback_after_content_video_id",this.rd],["trigger_type_on_opportunity_received",this.We]]),Tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qc],["SLOT_TYPE_ABOVE_FEED",this.qc],["SLOT_TYPE_FORECASTING",this.qc],["SLOT_TYPE_IN_PLAYER",this.qc],["SLOT_TYPE_PLAYER_BYTES", this.Ze]]),Dj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ge],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_IN_PLAYER",this.HE],["SLOT_TYPE_PLAYER_BYTES",this.Xe]])};this.listeners=[this.Fb.get()];this.Ae={Mb:this.Mb,Zh:null,Fj:this.Ed.get(),hg:this.za.get(),Sk:this.ra.get(),Kb:this.Kb,Ej:null,Fh:this.qd,ng:this.Fb.get()}}; bsa=function(a,b,c,d,e){g.C.call(this);var f=this;this.Sa=X(function(){return new vQ}); g.D(this,this.Sa);this.zb=X(function(){return new AQ(f.za,f.Sa)}); g.D(this,this.zb);this.Fb=X(function(){return new uQ}); g.D(this,this.Fb);this.rb=X(function(){return new pQ(a)}); g.D(this,this.rb);this.fb=X(function(){return new MQ(f.Sa)}); g.D(this,this.fb);this.Jc=X(function(){return new PQ}); g.D(this,this.Jc);this.pd=X(function(){return new RI(b.T())}); g.D(this,this.pd);this.Pb=X(function(){return new UR(b)}); g.D(this,this.Pb);this.dc=X(function(){return new fR(e)}); g.D(this,this.dc);this.Kc=X(function(){return new tL(b)}); g.D(this,this.Kc);this.yb=X(function(){return new RQ(b)}); g.D(this,this.yb);this.Oc=X(function(){return new WR(b)}); g.D(this,this.Oc);this.Wc=X(function(){return new YR(b)}); g.D(this,this.Wc);this.za=X(function(){return new SQ(b)}); g.D(this,this.za);this.cd=X(function(){return new TR(d,f.za)}); g.D(this,this.cd);this.bb=X(function(){return new BP(f.za)}); g.D(this,this.bb);this.pc=X(function(){return new nQ(f.fb,f.zb,f.bb,null,null)}); g.D(this,this.pc);this.wd=X(function(){return new ZR(b)}); g.D(this,this.wd);this.Ed=X(function(){return new $R}); g.D(this,this.Ed);this.Ba=X(function(){return new dR(b,f.Jc)}); g.D(this,this.Ba);this.Db=new OQ(this.za,this.bb,this.Ba);g.D(this,this.Db);this.ra=X(function(){return new eR(b)}); g.D(this,this.ra);this.gb=X(function(){return new VQ(f.ra,b)}); g.D(this,this.gb);this.Ea=X(function(){return new YQ(b,f.Fb,f.gb,f.Ba)}); g.D(this,this.Ea);this.nd=X(function(){return new gR}); g.D(this,this.nd);this.Ye=new FR(GR,qS,function(l,m,n,p){return BQ(f.zb.get(),l,m,n,p)},this.rb,this.fb,this.bb,this.za,this.Ba); g.D(this,this.Ye);this.Kb=new BF(this.rb,this.pc,c,this.za,a,this.Ba);g.D(this,this.Kb);var h=new QQ(b,this.Kb,this.ra,this.za);this.Kd=X(function(){return h}); this.Mj=h;this.Vc=new tQ(this.rb,this.fb,this.yb,this.Kd);g.D(this,this.Vc);this.Mb=new kF(this.rb,this.fb,this.pc,this.Ba,this.Vc,c);g.D(this,this.Mb);this.He=X(function(){return new jR(f.cd,f.zb,f.bb,f.za)}); g.D(this,this.He);this.uc=X(function(){return new kR}); g.D(this,this.uc);this.qd=new LR(a,this.Pb);g.D(this,this.qd);this.Ua=new MR(a);g.D(this,this.Ua);this.rd=new NR(a,this.Kd);g.D(this,this.rd);this.gd=new OR(a,this.yb,this.ra,this.Ba);g.D(this,this.gd);this.Wb=new QR(a);g.D(this,this.Wb);this.We=new RR(a);g.D(this,this.We);this.qc=X(function(){return new HR}); g.D(this,this.qc);this.Ze=X(function(){return new IR(f.ra)}); g.D(this,this.Ze);this.Ge=X(function(){return new mR(f.Mb)}); g.D(this,this.Ge);this.Ie=X(function(){return new nR(f.Ea,f.Wb,f.gb)}); g.D(this,this.Ie);this.qh=X(function(){return new uR(f.Pb,f.ra,f.Ea,f.Fb)}); g.D(this,this.qh);this.Xe=X(function(){return new ER(a,f.Wb,f.Ea,f.gb,f.nd,f.Oc,f.Ba,f.ra,f.yb,f.Kc,f.Wc,f.pd,f.dc,f.wd)}); g.D(this,this.Xe);this.Oj=new SR(a,this.Ed,this.bb,this.Ba,this.za,this.Sa);g.D(this,this.Oj);this.Uc={jm:new Map([["opportunity_type_ad_break_service_response_received",this.Mb],["opportunity_type_player_bytes_media_layout_entered",this.Ye],["opportunity_type_player_response_received",this.Kb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Vc]]),qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.He],["SLOT_TYPE_FORECASTING",this.uc],["SLOT_TYPE_IN_PLAYER",this.uc],["SLOT_TYPE_PLAYER_BYTES", this.uc]]),wg:new Map([["trigger_type_skip_requested",this.qd],["trigger_type_layout_id_entered",this.Ua],["trigger_type_layout_id_exited",this.Ua],["trigger_type_layout_exited_for_reason",this.Ua],["trigger_type_on_different_layout_id_entered",this.Ua],["trigger_type_slot_id_entered",this.Ua],["trigger_type_slot_id_exited",this.Ua],["trigger_type_slot_id_fulfilled_empty",this.Ua],["trigger_type_slot_id_fulfilled_non_empty",this.Ua],["trigger_type_slot_id_scheduled",this.Ua],["trigger_type_before_content_video_id_started", this.rd],["trigger_type_media_time_range",this.gd],["trigger_type_on_layout_self_exit_requested",this.Wb],["trigger_type_on_element_self_enter_requested",this.Wb],["trigger_type_on_new_playback_after_content_video_id",this.rd],["trigger_type_on_opportunity_received",this.We]]),Tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qc],["SLOT_TYPE_FORECASTING",this.qc],["SLOT_TYPE_IN_PLAYER",this.qc],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),Dj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ge],["SLOT_TYPE_FORECASTING", this.Ie],["SLOT_TYPE_IN_PLAYER",this.qh],["SLOT_TYPE_PLAYER_BYTES",this.Xe]])};this.listeners=[this.Fb.get()];this.Ae={Mb:this.Mb,Zh:null,Fj:this.Ed.get(),hg:this.za.get(),Sk:this.ra.get(),Kb:this.Kb,Ej:null,Fh:this.qd,ng:this.Fb.get()}}; rS=function(a,b,c,d,e,f,h,l){sR.call(this,a,b,c,d,e,f,h);this.Lm=l}; csa=function(a,b,c,d,e){this.Pb=a;this.ra=b;this.Ea=c;this.Dd=d;this.Lm=e}; dsa=function(a,b,c,d,e){g.C.call(this);var f=this;this.Sa=X(function(){return new vQ}); g.D(this,this.Sa);this.zb=X(function(){return new AQ(f.za,f.Sa)}); g.D(this,this.zb);this.Fb=X(function(){return new uQ}); g.D(this,this.Fb);this.rb=X(function(){return new pQ(a)}); g.D(this,this.rb);this.fb=X(function(){return new MQ(f.Sa)}); g.D(this,this.fb);this.Jc=X(function(){return new PQ}); g.D(this,this.Jc);this.Lm=X(function(){return new Era(b)}); g.D(this,this.Lm);this.pd=X(function(){return new RI(b.T())}); g.D(this,this.pd);this.Pb=X(function(){return new UR(b)}); g.D(this,this.Pb);this.dc=X(function(){return new fR(e)}); g.D(this,this.dc);this.Kc=X(function(){return new tL(b)}); g.D(this,this.Kc);this.yb=X(function(){return new RQ(b)}); g.D(this,this.yb);this.Oc=X(function(){return new WR(b)}); g.D(this,this.Oc);this.Wc=X(function(){return new YR(b)}); g.D(this,this.Wc);this.za=X(function(){return new SQ(b)}); g.D(this,this.za);this.cd=X(function(){return new TR(d,f.za)}); g.D(this,this.cd);this.bb=X(function(){return new BP(f.za)}); g.D(this,this.bb);this.pc=X(function(){return new nQ(f.fb,f.zb,f.bb,null,null)}); g.D(this,this.pc);this.wd=X(function(){return new ZR(b)}); g.D(this,this.wd);this.Ed=X(function(){return new $R}); g.D(this,this.Ed);this.Ba=X(function(){return new dR(b,f.Jc)}); g.D(this,this.Ba);this.Db=new OQ(this.za,this.bb,this.Ba);g.D(this,this.Db);this.ra=X(function(){return new eR(b)}); g.D(this,this.ra);this.gb=X(function(){return new VQ(f.ra,b)}); g.D(this,this.gb);this.Ea=X(function(){return new YQ(b,f.Fb,f.gb,f.Ba)}); g.D(this,this.Ea);this.nd=X(function(){return new gR}); g.D(this,this.nd);this.Ye=new FR(vra,qS,function(l,m,n,p){var r=f.zb.get(),t=Jqa(n);t.push(new bK(n.wH));t.push(new cK(n.zH));return Kqa(l,m,n,new vP(t),p,r.Sa.get())},this.rb,this.fb,this.bb,this.za,this.Ba); g.D(this,this.Ye);this.Kb=new BF(this.rb,this.pc,c,this.za,a,this.Ba);g.D(this,this.Kb);var h=new QQ(b,this.Kb,this.ra,this.za);this.Kd=X(function(){return h}); this.Mj=h;this.Vc=new tQ(this.rb,this.fb,this.yb,this.Kd);g.D(this,this.Vc);this.Mb=new kF(this.rb,this.fb,this.pc,this.Ba,this.Vc,c);g.D(this,this.Mb);this.He=X(function(){return new jR(f.cd,f.zb,f.bb,f.za)}); g.D(this,this.He);this.uc=X(function(){return new kR}); g.D(this,this.uc);this.qd=new LR(a,this.Pb);g.D(this,this.qd);this.Ua=new MR(a);g.D(this,this.Ua);this.rd=new NR(a,this.Kd);g.D(this,this.rd);this.gd=new OR(a,this.yb,this.ra,this.Ba);g.D(this,this.gd);this.Wb=new QR(a);g.D(this,this.Wb);this.We=new RR(a);g.D(this,this.We);this.qc=X(function(){return new HR}); g.D(this,this.qc);this.Ze=X(function(){return new IR(f.ra)}); g.D(this,this.Ze);this.Ge=X(function(){return new mR(f.Mb)}); g.D(this,this.Ge);this.Ie=X(function(){return new nR(f.Ea,f.Wb,f.gb)}); g.D(this,this.Ie);this.Xe=X(function(){return new ER(a,f.Wb,f.Ea,f.gb,f.nd,f.Oc,f.Ba,f.ra,f.yb,f.Kc,f.Wc,f.pd,f.dc,f.wd)}); g.D(this,this.Xe);this.BG=X(function(){return new csa(f.Pb,f.ra,f.Ea,f.Fb,f.Lm)}); g.D(this,this.BG);this.Oj=new SR(a,this.Ed,this.bb,this.Ba,this.za,this.Sa);g.D(this,this.Oj);this.Uc={jm:new Map([["opportunity_type_ad_break_service_response_received",this.Mb],["opportunity_type_player_bytes_media_layout_entered",this.Ye],["opportunity_type_player_response_received",this.Kb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Vc]]),qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.He],["SLOT_TYPE_FORECASTING",this.uc],["SLOT_TYPE_IN_PLAYER",this.uc],["SLOT_TYPE_PLAYER_BYTES", this.uc]]),wg:new Map([["trigger_type_skip_requested",this.qd],["trigger_type_layout_id_entered",this.Ua],["trigger_type_layout_id_exited",this.Ua],["trigger_type_layout_exited_for_reason",this.Ua],["trigger_type_on_different_layout_id_entered",this.Ua],["trigger_type_slot_id_entered",this.Ua],["trigger_type_slot_id_exited",this.Ua],["trigger_type_slot_id_fulfilled_empty",this.Ua],["trigger_type_slot_id_fulfilled_non_empty",this.Ua],["trigger_type_slot_id_scheduled",this.Ua],["trigger_type_before_content_video_id_started", this.rd],["trigger_type_after_content_video_id_ended",this.gd],["trigger_type_media_time_range",this.gd],["trigger_type_on_layout_self_exit_requested",this.Wb],["trigger_type_on_element_self_enter_requested",this.Wb],["trigger_type_on_new_playback_after_content_video_id",this.rd],["trigger_type_on_opportunity_received",this.We]]),Tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qc],["SLOT_TYPE_FORECASTING",this.qc],["SLOT_TYPE_IN_PLAYER",this.qc],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),Dj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Ge],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_IN_PLAYER",this.BG],["SLOT_TYPE_PLAYER_BYTES",this.Xe]])};this.listeners=[this.Fb.get()];this.Ae={Mb:this.Mb,Zh:null,Fj:this.Ed.get(),hg:this.za.get(),Sk:this.ra.get(),Kb:this.Kb,Ej:null,Fh:this.qd,ng:this.Fb.get()}}; esa=function(a,b,c,d){this.Pb=a;this.ra=b;this.Ea=c;this.Dd=d}; fsa=function(a,b,c,d,e){g.C.call(this);var f=this;this.Sa=X(function(){return new vQ}); g.D(this,this.Sa);this.zb=X(function(){return new AQ(f.za,f.Sa)}); g.D(this,this.zb);this.Fb=X(function(){return new uQ}); g.D(this,this.Fb);this.rb=X(function(){return new pQ(a)}); g.D(this,this.rb);this.fb=X(function(){return new MQ(f.Sa)}); g.D(this,this.fb);this.Jc=X(function(){return new PQ}); g.D(this,this.Jc);this.pd=X(function(){return new RI(b.T())}); g.D(this,this.pd);this.Pb=X(function(){return new UR(b)}); g.D(this,this.Pb);this.dc=X(function(){return new fR(e)}); g.D(this,this.dc);this.Kc=X(function(){return new tL(b)}); g.D(this,this.Kc);this.yb=X(function(){return new RQ(b)}); g.D(this,this.yb);this.Oc=X(function(){return new WR(b)}); g.D(this,this.Oc);this.Wc=X(function(){return new YR(b)}); g.D(this,this.Wc);this.za=X(function(){return new SQ(b)}); g.D(this,this.za);this.cd=X(function(){return new TR(d,f.za)}); g.D(this,this.cd);this.bb=X(function(){return new BP(f.za)}); g.D(this,this.bb);this.pc=X(function(){return new nQ(f.fb,f.zb,f.bb,null,f.gi,3)}); g.D(this,this.pc);this.wd=X(function(){return new ZR(b)}); g.D(this,this.wd);this.Ba=X(function(){return new dR(b,f.Jc)}); g.D(this,this.Ba);this.Db=new OQ(this.za,this.bb,this.Ba);g.D(this,this.Db);this.Td=X(function(){return new fS(b,f.Ba,f.za,f.Ea)}); g.D(this,this.Td);this.Uf=X(function(){return new Rra(b)}); g.D(this,this.Uf);this.ra=X(function(){return new eR(b)}); g.D(this,this.ra);this.nd=X(function(){return new gR}); this.gb=X(function(){return new VQ(f.ra,b)}); g.D(this,this.gb);this.Ea=X(function(){return new YQ(b,f.Fb,f.gb,f.Ba)}); g.D(this,this.Ea);this.Kb=new BF(this.rb,this.pc,c,this.za,a,this.Ba);g.D(this,this.Kb);var h=new QQ(b,this.Kb,this.ra,this.za,this.Td);this.Kd=X(function(){return h}); this.Mj=h;this.Ye=new FR(GR,qS,function(l,m,n,p){return BQ(f.zb.get(),l,m,n,p)},this.rb,this.fb,this.bb,this.za,this.Ba); g.D(this,this.Ye);this.gi=new dS(this.rb,this.fb,this.Ba,this.Kd,this.Td,this.ra,this.za);g.D(this,this.gi);this.Vc=new tQ(this.rb,this.fb,this.yb,this.Kd);g.D(this,this.Vc);this.Mb=new kF(this.rb,this.fb,this.pc,this.Ba,this.Vc,c);g.D(this,this.Mb);this.He=X(function(){return new jR(f.cd,f.zb,f.bb,f.za)}); g.D(this,this.He);this.uc=X(function(){return new kR}); g.D(this,this.uc);this.qd=new LR(a,this.Pb);g.D(this,this.qd);this.Ua=new MR(a);g.D(this,this.Ua);this.rd=new NR(a,this.Kd);g.D(this,this.rd);this.gd=new OR(a,this.yb,this.ra,this.Ba);g.D(this,this.gd);this.Xl=new eS(a,this.Ba);g.D(this,this.Xl);this.Wb=new QR(a);g.D(this,this.Wb);this.We=new RR(a);g.D(this,this.We);this.qc=X(function(){return new HR}); g.D(this,this.qc);this.Ze=X(function(){return new IR(f.ra)}); g.D(this,this.Ze);this.Ge=X(function(){return new mR(f.Mb)}); g.D(this,this.Ge);this.Ie=X(function(){return new nR(f.Ea,f.Wb,f.gb)}); g.D(this,this.Ie);this.Xe=X(function(){return new cS(a,f.Wb,f.Ba,f.Uf,f.ra,f.Ea,f.Jc,f.Td,f.gb,f.nd,f.Oc,f.yb,f.Kc,f.Wc,f.pd,f.dc,f.wd)}); g.D(this,this.Xe);this.qh=X(function(){return new esa(f.Pb,f.ra,f.Ea,f.Fb)}); g.D(this,this.qh);this.Uc={jm:new Map([["opportunity_type_ad_break_service_response_received",this.Mb],["opportunity_type_live_stream_break_signal",this.gi],["opportunity_type_player_bytes_media_layout_entered",this.Ye],["opportunity_type_player_response_received",this.Kb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Vc]]),qj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.He],["SLOT_TYPE_FORECASTING",this.uc],["SLOT_TYPE_IN_PLAYER",this.uc],["SLOT_TYPE_PLAYER_BYTES",this.uc]]),wg:new Map([["trigger_type_skip_requested", this.qd],["trigger_type_layout_id_entered",this.Ua],["trigger_type_layout_id_exited",this.Ua],["trigger_type_layout_exited_for_reason",this.Ua],["trigger_type_on_different_layout_id_entered",this.Ua],["trigger_type_slot_id_entered",this.Ua],["trigger_type_slot_id_exited",this.Ua],["trigger_type_slot_id_fulfilled_empty",this.Ua],["trigger_type_slot_id_fulfilled_non_empty",this.Ua],["trigger_type_slot_id_scheduled",this.Ua],["trigger_type_before_content_video_id_started",this.rd],["trigger_type_after_content_video_id_ended", this.gd],["trigger_type_media_time_range",this.gd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Xl],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Xl],["trigger_type_on_layout_self_exit_requested",this.Wb],["trigger_type_on_element_self_enter_requested",this.Wb],["trigger_type_on_new_playback_after_content_video_id",this.rd],["trigger_type_on_opportunity_received",this.We]]),Tj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qc],["SLOT_TYPE_FORECASTING",this.qc],["SLOT_TYPE_IN_PLAYER",this.qc],["SLOT_TYPE_PLAYER_BYTES", this.Ze]]),Dj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ge],["SLOT_TYPE_FORECASTING",this.Ie],["SLOT_TYPE_PLAYER_BYTES",this.Xe],["SLOT_TYPE_IN_PLAYER",this.qh]])};this.listeners=[this.Fb.get()];this.Ae={Mb:this.Mb,Zh:null,Fj:null,hg:this.za.get(),Sk:this.ra.get(),Kb:this.Kb,Ej:null,Fh:this.qd,ng:this.Fb.get()}}; hsa=function(a,b,c,d){g.C.call(this);var e=this;this.u=gsa(function(){return e.B},a,b,c,d); g.D(this,this.u);this.B=(new Xpa(this.u)).B;g.D(this,this.B)}; gsa=function(a,b,c,d,e){try{var f=b.T();if(g.nD(f))var h=new Zra(a,b,c,d,e);else if(g.rD(f))h=new $ra(a,b,c,d,e);else if(sD(f))h=new bsa(a,b,c,d,e);else if(eD(f))h=new asa(a,b,c,d,e);else if(qD(f))h=new dsa(a,b,c,d,e);else if(g.dD(f))h=new fsa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),S("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,"interface":e.deviceParams.c,j3:e.deviceParams.cver,h3:e.deviceParams.ctheme, g3:e.deviceParams.cplayer,x3:e.playerStyle}),new era(a,b,c,d)}}; isa=function(a,b,c){this.u=a;this.Zh=b;this.B=c}; g.sS=function(a){g.O.call(this);this.loaded=!1;this.player=a}; tS=function(a){g.sS.call(this,a);var b=this;this.u=null;this.D=new ZE(this.player);this.C=null;this.F=function(){function d(){return b.u} if(null!=b.C)return b.C;var e=lM({FA:a.getVideoData(1)});e=new zpa({xH:new isa(d,b.B.u.Ae.Zh,b.B.B),yo:e.nI(),yH:d,JH:d,YL:d,Fh:b.B.u.Ae.Fh,Kh:e.tw(),J:b.player,hg:b.B.u.Ae.hg,Ea:b.B.u.Ea,ng:b.B.u.Ae.ng});b.C=e.B;return b.C}; this.B=new hsa(this.player,this,this.D,this.F);g.D(this,this.B);this.created=!1;var c=a.T();!aD(c)||g.dD(c)||eD(c)||(c=function(){return b.u},g.D(this,new jP(a,c)),g.D(this,new iN(a,c)))}; jsa=function(a){var b=a.B.u.Ae.Kb,c=b.u().u;c=SP(c,"SLOT_TYPE_PLAYER_BYTES_1");var d=[];c=g.q(c.values());for(var e=c.next();!e.done;e=c.next())d.push(e.value.slot);b=nF(b.Ba.get(),1).clientPlaybackNonce;c=!1;d=g.q(d);for(e=d.next();!e.done;e=d.next())e=e.value,e=wF(e)?e.Xb.B:void 0,e&&e===b&&(c&&S("More than 1 preroll playerBytes slot detected"),c=!0);(b=c)||(b=a.u,b=!VM(b,XM(b)));b||a.B.u.Ae.Sk.u()}; ksa=function(a){a=g.q(a.B.u.Ae.ng.u.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.Za&&"core"===b.eb)return!0;return!1}; mF=function(a,b,c){c=void 0===c?"":c;var d=a.B.u.Ae.hg,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=lsa(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);uia(a.B.u.Ae.Mb,c,d.Jn,b);a.u&&0b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);uS=new Uint8Array(256);vS=[];wS=[];xS=[];yS=[];for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;uS[f]=e;b=e<<1^(e>>7&&283);var h=b^e;vS.push(b<<24|e<<16|e<<8|h);wS.push(h<<24|vS[f]>>>8);xS.push(e<<24|wS[f]>>>8);yS.push(e<<24|xS[f]>>>8)}}this.u=[0,0,0,0];this.C=new Uint8Array(16);e=[];for(c=0;4>c;c++)e.push(a[4*c]<<24|a[4*c+1]<<16|a[4* c+2]<<8|a[4*c+3]);for(d=1;44>c;c++)a=e[c-1],c%4||(a=(uS[a>>16&255]^d)<<24|uS[a>>8&255]<<16|uS[a&255]<<8|uS[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.D=e;this.B=16}; msa=function(a,b){for(var c=0;4>c;c++)a.u[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.B=16}; nsa=function(a){for(var b=a.D,c=a.u[0]^b[0],d=a.u[1]^b[1],e=a.u[2]^b[2],f=a.u[3]^b[3],h=3;0<=h&&!(a.u[h]=-~a.u[h]);h--);for(h=4;40>h;){var l=vS[c>>>24]^wS[d>>16&255]^xS[e>>8&255]^yS[f&255]^b[h++];var m=vS[d>>>24]^wS[e>>16&255]^xS[f>>8&255]^yS[c&255]^b[h++];var n=vS[e>>>24]^wS[f>>16&255]^xS[c>>8&255]^yS[d&255]^b[h++];f=vS[f>>>24]^wS[c>>16&255]^xS[d>>8&255]^yS[e&255]^b[h++];c=l;d=m;e=n}a=a.C;c=[c,d,e,f];for(d=0;16>d;)a[d++]=uS[c[0]>>>24]^b[h]>>>24,a[d++]=uS[c[1]>>16&255]^b[h]>>16&255,a[d++]=uS[c[2]>> 8&255]^b[h]>>8&255,a[d++]=uS[c[3]&255]^b[h++]&255,c.push(c.shift())}; g.AS=function(){g.C.call(this);this.C=null;this.K=this.I=!1;this.F=new g.Nl;g.D(this,this.F)}; BS=function(a){a=a.ip();return 1>a.length?NaN:a.end(a.length-1)}; osa=function(a,b){a.C&&null!==b&&b.u===a.C.u||(a.C&&a.C.dispose(),a.C=b)}; CS=function(a){return Py(a.zf(),a.getCurrentTime())}; psa=function(a,b){if(0==a.rg()||0d&&(d=-(d+1));g.De(a,b,d);b.setAttribute("data-layer",String(c))}; g.JT=function(a){var b=a.T();if(!b.Ab)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.Q(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.Q(b.experiments,"allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay); f=c.jc&&f;return!c.ypcPreview&&(!d||e)&&!g.ib(c.Hf,"ypc")&&!a&&(!g.OC(b)||f)}; g.KT=function(a,b,c,d,e){a.T().ea&&yta(a.app.Ca,b,c,d,void 0===e?!1:e)}; g.sN=function(a,b,c,d){a.T().ea&&zta(a.app.Ca,b,c,void 0===d?!1:d)}; g.tN=function(a,b,c){a.T().ea&&(a.app.Ca.elements.has(b),c&&(b.visualElement=g.Ys(c)))}; g.LT=function(a,b,c){a.T().ea&&a.app.Ca.click(b,c)}; g.wN=function(a,b,c,d){if(a.T().ea){a=a.app.Ca;a.elements.has(b);c?a.u.add(b):a.u["delete"](b);var e=g.dt(),f=b.visualElement;a.B.has(b)?e&&f&&(c?g.rt(e,[f]):g.tt(e,[f])):c&&!a.C.has(b)&&(e&&f&&g.kt(e,f,d),a.C.add(b))}}; g.vN=function(a,b){return a.T().ea?a.app.Ca.elements.has(b):!1}; g.dN=function(a,b){if(a.app.getPresentingPlayerType()===b){var c=a.app,d=g.Z(c,b);d&&(c.da("release presenting player, type "+d.getPlayerType()+", vid "+d.getVideoData().videoId),d!==c.C?MT(c,c.C):Ata(c))}}; Sra=function(a,b,c){c=void 0===c?Infinity:c;a=a.app;b=void 0===b?-1:b;b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.P?NT(a.P,b,c):OT(a.ka,b,c)}; $E=function(a){a=a.app;var b=g.Z(a,void 0);if(b){a=PT(a,b);b=a.Gc();var c=a.getCurrentTime(),d;(d=!a.videoData.isLivePlayback)||(d=a.D,d=!(d.B&&d.B.C));a=d||QT(a.D)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a}; Bta=function(a){if(!a.aa("html5_inline_video_quality_survey"))return!1;var b=g.Z(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.La||!c.La.video||1080>c.La.video.yc||c.YB)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.La.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.aa("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.Ma("iqss",e,!0),!0):!1}; RT=function(a,b){this.C=a;this.timerName="";this.B=!1;this.u=b||null;this.B=!1}; Cta=function(a){a=a.timerName;zB("yt_sts","p",a);AB("_start",void 0,a)}; tta=function(a,b,c){var d=g.UC(b.Ra)&&b.Ra.dg&&BH(b);if(b.Ra.Mf&&(QC(b.Ra)||xD(b.Ra)||d)&&!a.B){a.B=!0;g.L("TIMING_ACTION")||Wn("TIMING_ACTION",a.C.csiPageType);a.C.csiServiceName&&Wn("CSI_SERVICE_NAME",a.C.csiServiceName);if(a.u){b=a.u.B;d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,AB(e,b[e],a.timerName);b=a.u.u;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,zB(e,b[e],a.timerName);b=a.u;b.B={};b.u={}}zB("yt_pvis",cha(),a.timerName);zB("yt_pt","html5",a.timerName); c&&!HB("pbs",a.timerName)&&a.tick("pbs",c);c=a.C;!xD(c)&&!QC(c)&&HB("_start",a.timerName)&&LB(a.timerName)}}; g.ST=function(a,b){this.type=a||"";this.id=b||""}; g.TT=function(a,b){g.O.call(this);this.Ra=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.Fd=this.loaded=!1;this.md=this.Tv=this.cq=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Rh={};this.Ps=0;var c=b.session_data;c&&(this.md=zp(c));this.FH=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.XL="1"===b.mob;this.title=b.playlist_title||"";this.description= b.playlist_description||"";this.author=b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(c=b.api)"string"===typeof c&&16===c.length?b.list="PL"+c:b.playlist=c;if(c=b.list)switch(b.listType){case "user_uploads":this.Fd||(this.listId=new g.ST("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "search":Dta(this,c);break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.ST(c.substr(0, 2),c.substr(2));(c=b.video)?(this.items=c.slice(0),this.loaded=!0):Eta(this)}else if(b.playlist){c=b.playlist.toString().split(",");0=a.length?0:b}; Gta=function(a){var b=a.index-1;return 0>b?a.length-1:b}; VT=function(a,b){a.index=g.Wd(b,0,a.length-1);a.startSeconds=0}; Dta=function(a,b){if(!a.Fd){a.listId=new g.ST("SR",b);var c={search_query:b};a.XL&&(c.mob="1");a.loadPlaylist("/search_ajax?style=json&embeddable=1",c)}}; Eta=function(a){if(!a.Fd){var b=b||a.listId;b={list:b};var c=a.Ka();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}}; WT=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=a.Ka();a.items=[];for(var d=g.q(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(d=b.index)?a.index=d:a.findIndex(c);a.setShuffle(!1);a.Fd=!1;a.loaded=!0;a.Ps++;a.cq&&a.cq()}}; XT=function(a){var b=g.WE(),c=a.Jg;c&&(b.clickTracking={clickTrackingParams:c});var d=b.client||{},e="EMBED",f=zH(a);c=a.T();"leanback"===f?e="WATCH":c.aa("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Ai?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(c.Ca){f=c.Ca.split(",");e=[];f=g.q(f);for(var h=f.next();!h.done;h=f.next())e.push(Number(h.value));d.experimentIds=e}if(e=c.getPlayerType())d.playerType= e;if(e=c.deviceParams.ctheme)d.theme=e;a.Kq&&(d.unpluggedAppInfo={enableFilterMode:!0});if(e=a.ke)d.unpluggedLocationInfo=e;b.client=d;d=b.request||{};if(e=a.mdxEnvironment)d.mdxEnvironment=e;if(e=a.mdxControlMode)d.mdxControlMode=Hta[e];b.request=d;d=b.user||{};if(e=a.Zf)d.credentialTransferTokens=[{token:e,scope:"VIDEO"}];if(e=a.xh)d.delegatePurchases={oauthToken:e},d.kidsParent={oauthToken:e};b.user=d;if(d=a.contextParams)b.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)b.clientScreenNonce= a;if(a=c.Pa)b.thirdParty={embedUrl:a};return b}; ZT=function(a,b,c){var d=a.videoId,e=XT(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(fp()),referer:document.location.toString(),signatureTimestamp:18606};g.vs.getInstance();a.xi&&(h.autonav=!0);g.xs(0,141)&&(h.autonavState=g.xs(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.xs(0,66);CH(a)&&(h.autoplay=!0);f.C&&a.cycToken&&(h.cycToken=a.cycToken);a.Vw&&(h.fling=!0);var l=a.Zm;if(l){var m={},n=l.split("|");3===n.length?(m.breakType=Ita[n[0]],m.offset={kind:"OFFSET_MILLISECONDS", value:String(Number(n[1])||0)},m.url=n[2]):m.url=l;h.forceAdParameters={videoAds:[m]}}a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);l=a.Us;if(null!=l){l={startWalltime:String(l)};if(m=a.qn)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.zj&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);if((l=a.isMdxPlayback)||g.Q(f.experiments,"send_mdx_remote_data_if_present")){l={triggeredByMdx:l};if(n=a.bf)m=n.startsWith("!"),n=n.split("-"),3===n.length?(m&&(n[0]=n[0].substr(1)), m={clientName:Jta[n[0]]||"UNKNOWN_INTERFACE",platform:Kta[n[1]]||"UNKNOWN_PLATFORM",applicationState:m?"INACTIVE":"ACTIVE",clientVersion:n[2]||""},f.aa("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]):(m={clientName:"UNKNOWN_INTERFACE"},f.aa("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]);if(m=a.jj)l.skippableAdsSupported=m.split(",").includes("ska");h.mdxContext=l}l=b.width; 0Math.random()){var B=new g.Gq("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.Tr(B)}Ul(p);t&&t(y)}; var w=h,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":Ul(n)}x&&x(y)}; f&&((e=a.J.T().cspNonce)&&h.setAttribute("nonce",e),g.fd(h,g.jg(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(h,e.firstChild),g.Wf(a,function(){h.parentNode&&h.parentNode.removeChild(h);g.eU[b]=null;"annotations_module"===b&&(g.eU.creatorendscreen=null)}))}}; lU=function(a,b,c,d){g.O.call(this);var e=this;this.target=a;this.Y=b;this.B=0;this.I=!1;this.D=new g.ae(NaN,NaN);this.u=new g.cR(this);this.fa=this.C=this.K=null;g.D(this,this.u);b=d?4E3:3E3;this.P=new g.F(function(){kU(e,1,!1)},b,this); g.D(this,this.P);this.W=new g.F(function(){kU(e,2,!1)},b,this); g.D(this,this.W);this.X=new g.F(function(){kU(e,512,!1)},b,this); g.D(this,this.X);this.ca=c&&01+b&&a.api.toggleFullscreen()}; hua=function(){var a=br()&&67<=Zq();return!ar("tizen")&&!MC&&!a&&!0}; KU=function(a){g.V.call(this,{G:"button",ia:["ytp-button","ytp-back-button"],S:[{G:"div",L:"ytp-arrow-back-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",tb:!0,U:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.J=a;g.pN(this,a.T().showBackButton);this.wa("click",this.onClick)}; g.LU=function(a){g.V.call(this,{G:"div",S:[{G:"div",L:"ytp-bezel-text-wrapper",S:[{G:"div",L:"ytp-bezel-text",Z:"{{title}}"}]},{G:"div",L:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{G:"div",L:"ytp-bezel-icon",Z:"{{icon}}"}]}]});this.J=a;this.B=new g.F(this.show,10,this);this.u=new g.F(this.hide,500,this);g.D(this,this.B);g.D(this,this.u);this.hide()}; NU=function(a,b,c){if(0>=b){c=KN();b="muted";var d=0}else c=c?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";MU(a,c,b,d+"%")}; mua=function(a,b){var c=b?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]},d=a.J.getPlaybackRate(),e=g.IJ("Speed is $RATE",{RATE:String(d)});MU(a,c,e,d+"x")}; MU=function(a,b,c,d){d=void 0===d?"":d;a.ya("label",void 0===c?"":c);a.ya("icon",b);a.u.jg();a.B.start();a.ya("title",d);g.K(a.element,"ytp-bezel-text-hide",!d)}; OU=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-cards-teaser",S:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",S:[{G:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"}]}]});var d=this;this.J=a;this.W=b;this.ci=c;this.D=new g.TN(this,250,!1,250);this.u=null;this.K=new g.F(this.NN,300,this);this.I=new g.F(this.MN,2E3,this);this.F=[];this.B=null;this.P=new g.F(function(){d.element.style.margin="0"},250); this.C=null;g.D(this,this.D);g.D(this,this.K);g.D(this,this.I);g.D(this,this.P);this.R(c.element,"mouseover",this.gD);this.R(c.element,"mouseout",this.fD);this.R(a,"cardsteasershow",this.ZO);this.R(a,"cardsteaserhide",this.ib);this.R(a,"cardstatechange",this.lG);this.R(a,"presentingplayerstatechange",this.lG);this.R(a,"appresize",this.iz);this.R(a,"onShowControls",this.iz);this.R(a,"onHideControls",this.KH);this.wa("click",this.xQ);this.wa("mouseenter",this.RK)}; QU=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-button","ytp-cards-button"],U:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.OC(a.T()))},S:[{G:"span",L:"ytp-cards-button-icon-default",S:[{G:"div",L:"ytp-cards-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {G:"div",L:"ytp-cards-button-title",Z:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",S:[{G:"div",L:"ytp-cards-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",L:"ytp-svg-shadow",U:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",U:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",U:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div", L:"ytp-cards-button-title",Z:"Shopping"}]}]});this.J=a;this.D=b;this.C=c;this.u=null;this.B=new g.TN(this,250,!0,100);g.D(this,this.B);g.K(this.C,"ytp-show-cards-title",g.OC(a.T()));this.hide();this.wa("click",this.onClicked);this.wa("mouseover",this.qN);PU(this,!0)}; PU=function(a,b){b?a.u=g.RU(a.D.Nb(),a.element):(a.u=a.u,a.u(),a.u=null)}; oua=function(a,b,c,d){var e=window.location.search;if(38===b.Og&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Ed("//web.archive.org/web/20201214145215/https://play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.cM});if(30===b.Og&&"docs"===a.playerStyle)return g.Ed("https://web.archive.org/web/20201214145215/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.ne,authkey:b.authKey,eurl:a.Pa});if(33===b.Og&&"google-live"===a.playerStyle)return g.Ed("//web.archive.org/web/20201214145215/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId}); "yt"!==a.X&&g.Tr(Error("getVideoInfoUrl for invalid namespace: "+a.X));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Pa,ps:a.playerStyle,el:zH(b),hl:a.hf,list:b.playlistId,agcid:b.bA,aqi:b.adQueryId,sts:18606,lact:fp()};g.Sa(f,a.deviceParams);a.Ca&&(f.forced_experiments=a.Ca);b.Zf?(f.vvt=b.Zf,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.kf()&&(f.access_token=b.kf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&& (f.break_type=b.breakType);null!==b.cv&&(f.ad_id=b.cv);null!==b.jv&&(f.ad_sys=b.jv);null!==b.Rv&&(f.encoded_ad_playback_context=b.Rv);b.Py&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.gj&&2!==a.gj&&(f.cc_load_policy=a.gj);var h=g.xs(g.vs.getInstance(),65);g.tD(a)&&null!=h&&!h&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Jr&&(f.endscreen_ad_tracking= b.Jr);(h=a.K.get(b.videoId))&&h.Iq&&(f.ic_track=h.Iq);b.Jg&&(f.itct=b.Jg);CH(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.xi&&(f.autonav="1");b.Yw&&(f.noiba="1");g.Q(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.bf&&(f.ytr=b.bf)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.bf);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.jj&&(f.ytrcc=b.jj);b.hx&&(f.utpsa="1");b.Vw&&(f.is_fling="1");b.Ww&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Zm&&(h= 3===b.Zm.split("|").length,f.force_ad_params=h?b.Zm:"||"+b.Zm);b.Pn&&(f.preload=b.Pn);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.zj&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");AH(b)&&(f.content_v=AH(b));b.Ai&&(f.livemonitor=1);a.ne&&(f.authuser=a.ne);a.pageId&&(f.pageid=a.pageId);a.Ib&&(f.ei=a.Ib);a.B&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.Us&&(f.live_start_walltime=b.Us);a.C&&b.qn&&(f.live_manifest_duration=b.qn);a.C&&b.playerParams&& (f.player_params=b.playerParams);a.C&&b.cycToken&&(f.cyc=b.cycToken);a.C&&b.Sy&&(f.tkn=b.Sy);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.xh&&(f.kpt=b.xh);b.Os&&(f.kids_age_up_mode=b.Os);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Kq&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.ke?(h=null!=b.ke.latitudeE7&&null!=b.ke.longitudeE7?b.ke.latitudeE7+","+b.ke.longitudeE7:",",h+=","+(b.ke.clientPermissionState||0)+","+ (b.ke.locationRadiusMeters||"")+","+(b.ke.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.tp&&(f.internalipoverride=b.tp);a.embedConfig&&(f.embed_config=a.embedConfig);a.cj&&(f.co_rel="1");0b);e=d.next())c++;return 0===c?c:c-1}; Hua=function(a,b){var c=wV(a,b)+1;return cd;e={ak:e.ak},f++){e.ak=c[f];a:switch(e.ak.img||e.ak.iconId){case "facebook":var h={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":h={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.V({G:"a",ia:["ytp-share-panel-service-button","ytp-button"],U:{href:e.ak.url,target:"_blank",title:e.ak.sname||e.ak.serviceName},S:[h]}),h.wa("click",function(m){return function(n){if(g.KO(n)){var p=m.ak.url;var r=void 0===r?{}:r;r.target=r.target||"YouTube";r.width=r.width||"600";r.height=r.height||"600";r||(r={});var t=window;var w=p instanceof g.Bc?p:g.Gc("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var x=[];for(y in r)switch(y){case "width":case "height":case "top":case "left":x.push(y+ "="+r[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(r[y]?1:0))}var y=x.join(",");Od()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.Ae("A"),g.ed(y,w),y.setAttribute("target",p),r.noreferrer&&y.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(r),t={}):r.noreferrer?(t=gd("",t,p,y),r=g.Cc(w),t&&(g.uD&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.cd(g.fc("b/12014412, meta tag with sanitized URL"), ''),(w=t.document)&&w.write&&(w.write(g.Zc(r)),w.close()))):(t=gd(w,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.No(n)}}}(e)),g.Wf(h,g.RU(a.tooltip,h.element)),a.B.push(h),d++)}var l=b.more||b.moreLink; c=new g.V({G:"a",ia:["ytp-share-panel-service-button","ytp-button"],S:[{G:"span",L:"ytp-share-panel-service-button-more",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],U:{href:l,target:"_blank",title:"More"}});c.wa("click",function(m){g.pU(l,a.api,m)&&a.api.xa("SHARE_CLICKED")}); g.Wf(c,g.RU(a.tooltip,c.element));a.B.push(c);a.ya("buttons",a.B)}; Rua=function(a){g.en(a.element,"ytp-share-panel-loading");g.H(a.element,"ytp-share-panel-fail")}; Qua=function(a){for(var b=g.q(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Xf(c);a.B=[]}; NV=function(a,b){g.V.call(this,{G:"div",L:"ytp-shopping-overlay"});var c=this;this.J=a;this.Ha=b;this.F=this.I=this.la=this.u=this.expanded=this.dismissed=this.ca=this.enabled=!1;this.Pa=!0;this.C=this.B=this.K=this.Y=!1;this.fa=new g.F(function(){c.badge.element.style.width=""},200,this); this.ka=new g.F(function(){LV(c);MV(c)},200,this); this.dismissButton=new g.V({G:"button",ia:["ytp-shopping-overlay-badge-dismiss-button-icon","ytp-button"]});g.D(this,this.dismissButton);this.D=new g.V({G:"div",L:"ytp-shopping-overlay-badge-expanded-content-container",S:[{G:"label",L:"ytp-shopping-overlay-badge-title"},this.dismissButton]});g.D(this,this.D);this.badge=new g.V({G:"button",ia:["ytp-button","ytp-shopping-overlay-badge","ytp-shopping-overlay-badge-with-controls"],S:[{G:"div",L:"ytp-shopping-overlay-badge-icon"},this.D]});g.D(this,this.badge); this.badge.ga(this.element);this.R(this.badge.element,"click",this.HM);this.P=new g.TN(this.badge,250,!1,100);g.D(this,this.P);this.X=new g.TN(this.D,250,!1,100);g.D(this,this.X);this.ea=new g.Um(this.nQ,null,this);g.D(this,this.ea);this.W=new g.Um(this.dI,null,this);g.D(this,this.W);g.D(this,this.fa);g.D(this,this.ka);g.sN(this.J,this.badge.element,this.badge,!0);g.sN(this.J,this.dismissButton.element,this.dismissButton,!0);this.R(this.J,"onHideControls",function(){c.u=!1;MV(c);LV(c);c.Vh()}); this.R(this.J,"onShowControls",function(){c.u=!0;MV(c);LV(c);c.Vh()}); this.R(this.J,g.bE("shopping_overlay_visible"),function(){c.Ve(!0)}); this.R(this.J,g.cE("shopping_overlay_visible"),function(){c.Ve(!1)}); this.R(this.J,g.bE("shopping_overlay_expanded"),function(){c.I=!0;MV(c)}); this.R(this.J,g.cE("shopping_overlay_expanded"),function(){c.I=!1;MV(c)}); this.R(this.J,"changeProductsInVideoVisibility",this.hO);this.R(this.J,"videodatachange",this.Oa);this.R(this.J,"pageTransition",this.jL);this.R(this.dismissButton.element,"click",this.IM);this.R(this.J,"appresize",this.Vh);this.R(this.J,"fullscreentoggled",this.Vh);this.R(this.J,"cardstatechange",this.MM);this.R(this.J,"annotationvisibility",this.LQ,this);this.R(this.J,"paidcontentoverlayvisibilitychange",this.YN)}; LV=function(a){g.K(a.badge.element,"ytp-shopping-overlay-badge-with-controls",a.u||!a.F)}; AW=function(a){return a.Pa&&!a.ca&&a.enabled&&!a.dismissed&&!a.Ha.ye()&&!a.J.isFullscreen()&&!a.la&&!a.K&&(a.F||a.u)}; MV=function(a,b){var c=a.I||a.u||!a.F;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ea.stop(),a.W.stop(),a.fa.stop(),a.ea.start()):(g.pN(a.D,a.expanded),g.K(a.badge.element,"ytp-shopping-overlay-badge-expanded",a.expanded)),Sua(a))}; Sua=function(a){a.B&&g.wN(a.J,a.badge.element,AW(a));a.C&&g.wN(a.J,a.dismissButton.element,AW(a)&&(a.I||a.u||!a.F))}; Tua=function(a,b){b?a.C&&g.LT(a.J,a.dismissButton.element):a.B&&g.LT(a.J,a.badge.element)}; Uua=function(a,b){b=void 0===b?0:b;var c=[],d=a.timing.visible,e=a.timing.expanded;d&&c.push(new g.ZD(1E3*(d.startSec+b),1E3*(d.endSec+b),{priority:7,namespace:"shopping_overlay_visible"}));e&&c.push(new g.ZD(1E3*(e.startSec+b),1E3*(e.endSec+b),{priority:7,namespace:"shopping_overlay_expanded"}));g.eN(a.J,c)}; BW=function(a){g.GT(a.J,"shopping_overlay_visible");g.GT(a.J,"shopping_overlay_expanded")}; CW=function(a){g.CU.call(this,a,{G:"button",ia:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{G:"div",L:"ytp-skip-intro-button-text",Z:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.F(function(){b.hide()},5E3); this.Dk=this.Rl=NaN;g.D(this,this.B);this.I=function(){b.show()}; this.F=function(){b.hide()}; this.D=function(){var c=b.J.getCurrentTime();c>b.Rl/1E3&&c=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+r+"px "+t+"px/"+l+"px "+m+"px"}; g.IW=function(a){g.V.call(this,{G:"div",L:"ytp-storyboard-framepreview",S:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.ha("ytp-storyboard-framepreview-img");this.Yg=null;this.B=NaN;this.events=new g.cR(this);this.u=new g.TN(this,100);g.D(this,this.events);g.D(this,this.u);this.R(this.api,"presentingplayerstatechange",this.ac)}; JW=function(a,b){var c=!!a.Yg;a.Yg=b;a.Yg?(c||(a.events.R(a.api,"videodatachange",function(){JW(a,a.api.lg())}),a.events.R(a.api,"progresssync",a.Yd),a.events.R(a.api,"appresize",a.C)),a.B=NaN,KW(a),a.u.show(200)):(c&&g.Hs(a.events),a.u.hide(),a.u.stop())}; KW=function(a){var b=a.Yg,c=a.api.getCurrentTime(),d=g.aF(a.api).getPlayerSize(),e=jG(b,d.width);c=oG(b,e,c);c!==a.B&&(a.B=c,lG(b,c,d.width),b=b.Gl(c,d.width),Wua(a.D,b,d.width,d.height))}; LW=function(a,b){g.V.call(this,{G:"button",ia:["ytp-fullerscreen-edu-button","ytp-button"],S:[{G:"div",ia:["ytp-fullerscreen-edu-text"],Z:"Scroll for details"},{G:"div",ia:["ytp-fullerscreen-edu-chevron"],S:[{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.u=a;this.F=b;this.C=new g.TN(this,250,void 0,100);this.D=this.B=!1;g.KT(a,this.element,this,61214);this.F=b;g.D(this,this.C);this.R(a, "fullscreentoggled",this.oa);this.R(a,"presentingplayerstatechange",this.oa);this.wa("click",this.onClick);this.oa()}; g.MW=function(a,b){g.V.call(this,{G:"button",ia:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.J=a;this.C=b;this.message=null;this.u=g.RU(this.C.Nb(),this.element);this.B=new g.F(this.IH,2E3,this);g.D(this,this.B);this.R(a,"fullscreentoggled",this.hD);this.R(a,"presentingplayerstatechange",this.oa);this.wa("click",this.onClick);if(Bs()){var c=g.aF(this.J);this.R(c,Vea(),this.Rx);this.R(c,Es(document),this.Nj)}a.T().la||a.T().aa("embeds_enable_mobile_custom_controls")|| this.disable();this.oa();this.hD(a.isFullscreen())}; Xua=function(a,b){String(b).includes("fullscreen error")?g.Ur(b):g.Tr(b);a.Rx()}; NW=function(a,b){g.V.call(this,{G:"button",ia:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[roa()]});this.J=a;this.visible=!1;this.wa("click",this.onClick);this.R(a,"fullscreentoggled",this.oa);this.ya("title",g.sU(a,"Miniplayer","i"));g.Wf(this,g.RU(b.Nb(),this.element));g.KT(a,this.element,this,62946);this.oa()}; OW=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-multicam-button","ytp-button"],U:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,U:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z", fill:"#fff"}}]}]});var d=this;this.J=a;this.u=!1;this.B=new g.F(this.C,400,this);this.tooltip=b.Nb();WU(this.tooltip);g.D(this,this.B);this.wa("click",function(){DU(c,d.element,!1)}); this.R(a,"presentingplayerstatechange",function(){d.oa(!1)}); this.R(a,"videodatachange",this.Oa);this.oa(!0);g.Wf(this,g.RU(this.tooltip,this.element))}; PW=function(a){g.CU.call(this,a,{G:"div",L:"ytp-multicam-menu",U:{role:"dialog"},S:[{G:"div",L:"ytp-multicam-menu-header",S:[{G:"div",L:"ytp-multicam-menu-title",S:["Switch camera",{G:"button",ia:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.DN()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.C=new g.cR(this);this.items=this.ha("ytp-multicam-menu-items");this.B=[];g.D(this,this.C);a=this.ha("ytp-multicam-menu-close");this.R(a,"click",this.ib);this.hide()}; QW=function(){g.C.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.Um(this.u,null,this);g.D(this,this.delay)}; Yua=function(a,b){if("path"===b.G)return b.U.d;if(b.S)for(var c=0;cl)a.Da[c].width=n;else{a.Da[c].width=0;var p=a,r=c,t=p.Da[r-1];void 0!== t&&0a.la&&(a.la=m/f),d=!0)}c++}}return d}; dX=function(a){if(a.C){var b=a.api.getProgressState(),c=new TO(b.seekableStart,b.seekableEnd),d=VO(c,b.loaded,0);b=VO(c,b.current,0);var e=a.u.B!==c.B||a.u.u!==c.u;a.u=c;eX(a,b,d);e&&fX(a);tva(a)}}; hX=function(a,b){var c=UO(a.u,b.C);if(1=a.Da.length?!1:Math.abs(b-a.Da[c].startTime/1E3)/a.u.u*(a.C-(a.B?3:2)*a.X).2*(a.B?60:40)&&1===a.Da.length){var h=c*(a.u.getLength()/60),l=d*(a.u.getLength()/60);for(h=Math.ceil(h);h=f;c--)g.Ee(e[c]);a.element.style.height=a.P+(a.B?8:5)+"px";a.V("height-change",a.P);a.Fe.style.height=a.P+(a.B?20:13)+"px";e=g.q(Object.keys(a.Y));for(f=e.next();!f.done;f=e.next())wva(a,f.value);iX(a);eX(a,a.K,a.ka)}; bX=function(a){var b=a.Qa.x,c=a.C*a.fa;b=g.Wd(b,0,a.C);a.Hd.update(b,a.C,-a.W,-(c-a.W-a.C));return a.Hd}; eX=function(a,b,c){a.K=b;a.ka=c;var d=bX(a),e=a.u.u,f=UO(a.u,a.K),h=g.IJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.JO(f,!0),DURATION:g.JO(e,!0)}),l=wV(a.Da,1E3*f);l=a.Da[l].title;a.update({ariamin:Math.floor(a.u.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.F&&2!==a.api.getPresentingPlayerType()&&(e=a.F.startTimeMs/1E3,f=a.F.endTimeMs/1E3);e=VO(a.u,e,0);h=VO(a.u,f,1);f=g.Wd(b,e,h);c=g.Wd(c,e,h);b=pva(a,b,d);g.lg(a.hf,"transform","translateX("+ b+"px)");jX(a,d,e,f,"PLAY_PROGRESS");jX(a,d,e,c,"LOAD_PROGRESS")}; jX=function(a,b,c,d,e){var f=a.Da.length,h=b.u-a.X*(a.B?3:2),l=c*h;c=gX(a,l);var m=d*h;h=gX(a,m);"HOVER_PROGRESS"===e&&(h=gX(a,b.u*d,!0),m=b.u*d-xva(a,b.u*d)*(a.B?3:2));b=Math.max(l-yva(a,c),0);for(d=c;d=a.Da.length)return a.C;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.Da.length?d-1:d}; pva=function(a,b,c){for(var d=b*a.u.u*1E3,e=-1,f=g.q(a.Da),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.B}; xva=function(a,b){for(var c=a.Da.length,d=0,e=g.q(a.Da),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.B?3:2,d++;else break;return d===c?c-1:d}; iX=function(a){var b=!!a.F&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.F?(c=a.F.startTimeMs/1E3,d=a.F.endTimeMs/1E3):(e=c>a.u.B,f=0a.K);g.K(a.Fe,"ytp-scrubber-button-hover",c===d&&1b||b===a.C)){a.C=b;var c=160*a.scale,d=160*a.scale,e=a.u.Gl(a.C,c);Wua(a.bg,e,c,d,!0);a.Y.start()}}; Uva=function(a){var b=a.B;3===a.type&&a.fa.stop();a.api.removeEventListener("appresize",a.X);a.P||b.setAttribute("title",a.F);a.F="";a.B=null}; g.YX=function(a,b){g.V.call(this,{G:"button",ia:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.OC(a.T()))},S:[{G:"div",L:"ytp-watch-later-icon",Z:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",Z:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.B=this.u=!1;this.tooltip=b.Nb();WU(this.tooltip);g.KT(a,this.element,this,28665);this.wa("click",this.onClick,this);this.R(a,"videoplayerreset",this.yL);this.R(a,"appresize", this.Jt);this.R(a,"videodatachange",this.Jt);this.R(a,"presentingplayerstatechange",this.Jt);this.Jt();var c=this.J.T(),d=Vva();c.B&&d?(Wva(),Xva(this,d.videoId)):this.oa(2);g.K(this.element,"ytp-show-watch-later-title",g.OC(c));g.Wf(this,g.RU(b.Nb(),this.element))}; Yva=function(a,b){g.Ksa(function(){Wva({videoId:b});window.location.reload()},"wl_button",g.iD(a.J.T()))}; Xva=function(a,b){if(!a.B)if(a.B=!0,a.oa(3),g.Q(a.J.T().experiments,"web_player_innertube_playlist_update")){var c=a.J.getVideoData();c=a.u?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=bF(a.J.app),e=a.u?function(){a.GE()}:function(){a.FE()}; NS(d,c).then(e,function(){a.B=!1;ZX(a,"An error occurred. Please try again later.")})}else c=a.J.T(),(a.u?Isa:Hsa)({videoIds:b, ne:c.ne,pageId:c.pageId,onError:a.sP,onSuccess:a.u?a.GE:a.FE,context:a},c.P,!0)}; ZX=function(a,b){a.oa(4,b);a.J.T().C&&a.J.xa("WATCH_LATER_ERROR",b)}; Zva=function(a,b){var c=a.J.T();if(b!==a.icon){switch(b){case 3:var d=qU();break;case 1:d=AN();break;case 2:d={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=g.Q(c.experiments,"watch_later_iconchange_killswitch")?{G:"svg",U:{height:"100%", version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,U:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.ya("icon",d); a.icon=b}}; $X=function(a){g.GU.call(this,a);var b=this;this.ln=g.OC(this.api.T());this.Hv=48;this.Iv=69;this.hi=null;this.Qk=[];this.Ob=new g.LU(this.api);this.Fr=new tV(this.api);this.vg=new g.V({G:"div",L:"ytp-chrome-top"});this.Gq=[];this.tooltip=new g.WX(this.api,this);this.backButton=this.Nn=null;this.channelAvatar=new YU(this.api,this);this.title=new VX(this.api,this);this.If=new g.mN({G:"div",L:"ytp-chrome-top-buttons"});this.ag=null;this.ci=new QU(this.api,this,this.vg.element);this.overflowButton=this.Tf= null;this.uf="1"===this.api.T().controlsType?new RX(this.api,this,this.Fc):null;this.contextMenu=new g.pV(this.api,this,this.Ob);this.tv=!1;this.Sr=new g.V({G:"div",U:{tabindex:"0"}});this.Rr=new g.V({G:"div",U:{tabindex:"0"}});this.Zp=null;this.Gy=this.Cr=!1;var c=g.aF(a),d=a.T(),e=a.getVideoData();this.ln&&(g.H(a.getRootNode(),"ytp-embed"),g.H(a.getRootNode(),"ytp-embed-playlist"),this.Hv=60,this.Iv=89);this.Fg=e&&e.Fg;g.D(this,this.Ob);g.iP(a,this.Ob.element,4);g.D(this,this.Fr);g.iP(a,this.Fr.element, 4);e=new g.V({G:"div",L:"ytp-gradient-top"});g.D(this,e);g.iP(a,e.element,1);this.Zy=new g.TN(e,250,!0,100);g.D(this,this.Zy);g.D(this,this.vg);g.iP(a,this.vg.element,1);this.Yy=new g.TN(this.vg,250,!0,100);g.D(this,this.Yy);g.D(this,this.tooltip);g.iP(a,this.tooltip.element,4);var f=new EV(a);g.D(this,f);g.iP(a,f.element,5);f.subscribe("show",function(l){b.Dl(f,l)}); this.Gq.push(f);this.Nn=new FV(a,this,f);g.D(this,this.Nn);d.showBackButton&&(this.backButton=new KU(a),g.D(this,this.backButton),this.backButton.ga(this.vg.element));this.ln||this.Nn.ga(this.vg.element);this.channelAvatar.ga(this.vg.element);g.D(this,this.channelAvatar);g.D(this,this.title);this.title.ga(this.vg.element);g.D(this,this.If);this.If.ga(this.vg.element);this.ag=new g.YX(a,this);g.D(this,this.ag);this.ag.ga(this.If.element);var h=new g.KV(a,this);g.D(this,h);g.iP(a,h.element,5);h.subscribe("show", function(l){b.Dl(h,l)}); this.Gq.push(h);this.shareButton=new g.JV(a,this,h);g.D(this,this.shareButton);this.shareButton.ga(this.If.element);this.kj=new qV(a,this);g.D(this,this.kj);this.kj.ga(this.If.element);d.Zq&&(e=new CW(a),g.D(this,e),g.iP(a,e.element,4));this.ln&&this.Nn.ga(this.If.element);g.D(this,this.ci);this.ci.ga(this.If.element);e=new OU(a,this,this.ci);g.D(this,e);e.ga(this.If.element);this.Tf=new BV(a,this);g.D(this,this.Tf);g.iP(a,this.Tf.element,5);this.Tf.subscribe("show",function(){b.Dl(b.Tf,b.Tf.rf())}); this.Gq.push(this.Tf);this.overflowButton=new AV(a,this,this.Tf);g.D(this,this.overflowButton);this.overflowButton.ga(this.If.element);this.uf&&g.D(this,this.uf);"3"===d.controlsType&&(e=new IV(a,this),g.D(this,e),g.iP(a,e.element,8));g.D(this,this.contextMenu);this.contextMenu.subscribe("show",this.tG,this);e=new WO(a,new hP(a));g.D(this,e);g.iP(a,e.element,4);this.Sr.wa("focus",this.lI,this);g.D(this,this.Sr);this.Rr.wa("focus",this.mI,this);g.D(this,this.Rr);(this.Cj=d.Hd?null:new g.xV(a,c,this.contextMenu, this.Fc,this.Ob,this.Fr,function(){return b.pj()}))&&g.D(this,this.Cj); this.ln||(this.GF=new NV(this.api,this),g.D(this,this.GF),g.iP(a,this.GF.element,4));this.Pk.push(this.Ob.element);this.R(a,"fullscreentoggled",this.Nj);this.R(a,"offlineslatestatechange",function(){ET(b.api)&&kU(b.Fc,128,!1)}); this.R(a,"cardstatechange",function(){b.yg()}); this.R(a,"resize",this.ZM);this.R(a,"showpromotooltip",this.BN)}; $va=function(a){var b=a.api.T(),c=g.U(g.JI(a.api),128);return b.B&&c&&!a.api.isFullscreen()}; aY=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==qg(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=aY(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexd/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.u&&((b=b.u)&&b.isView()&&(b=b.u),b&&b.Kl().length>a.u&&g.kH(e)))return"played-ranges";if(!e.Ja)return null;if(!e.Ja.Dc()||!c.Dc())return"non-dash";if(e.Ja.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.kH(f)&&g.kH(e))return"content-protection"; a=c.u[0].audio;e=e.Ja.u[0].audio;return a.sampleRate===e.sampleRate||g.iA?(a.u||2)!==(e.u||2)?"channel-count":null:"sample-rate"}; eY=function(a,b,c,d){g.C.call(this);var e=this;this.policy=a;this.u=b;this.B=c;this.D=this.C=null;this.I=-1;this.K=!1;this.F=new dx;this.vf=d-1E3*b.tc();this.F.then(void 0,function(){}); this.timeout=new g.F(function(){dY(e,"timeout")},1E4); g.D(this,this.timeout);this.N=isFinite(d);this.status={status:0,error:null};this.da()}; iwa=function(a){return Pe(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w;return xa(c,function(x){if(1==x.u){e=d;if(d.ma())return x["return"](Promise.reject(Error(d.status.error||"disposed")));d.da();d.timeout.start();f=ly?new ky("gtfta"):null;return ra(x,d.F,2)}oy(f);h=d.u.u;if(h.zi())return dY(d,"ended_in_finishTransition"),x["return"](Promise.reject(Error(d.status.error||"")));if(!d.D||!uA(d.D))return dY(d,"next_mse_closed"),x["return"](Promise.reject(Error(d.status.error||"")));if(d.B.mediaSource!== d.D)return dY(d,"next_mse_mismatch"),x["return"](Promise.reject(Error(d.status.error||"")));l=ewa(d);m=l.JD;n=l.OA;p=l.ID;fY(d.u,!1,!0);r=fwa(h,m,p,!d.B.getVideoData().isAd());gY(d.B,r);d.N&&(d.B.seekTo(d.B.getCurrentTime()+.001,{qp:!0,Xy:3}),r.play()||ks());t=h.qb();t.cpn=d.u.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.B.Ma("gapless",g.oA(t));d.u.Ma("gaplessTo",d.B.getVideoData().clientPlaybackNonce);w=d.u.getPlayerType()===d.B.getPlayerType();gwa(d.u,n,!1,w,d.B.getVideoData().clientPlaybackNonce); gwa(d.B,d.B.getCurrentTime(),!0,w,d.u.getVideoData().clientPlaybackNonce);g.$l(function(){!e.B.getVideoData().Gg&&g.IL(e.B.getPlayerState())&&hwa(e.B)}); hY(d,6);d.dispose();return x["return"](Promise.resolve())})})}; lwa=function(a){if(a.B.getVideoData().Ja){iY(a.B,a.D);hY(a,3);jwa(a);var b=kwa(a),c=b.FF;b=b.lQ;c.subscribe("updateend",a.In,a);b.subscribe("updateend",a.In,a);a.In(c);a.In(b)}}; jwa=function(a){a.u.unsubscribe("internalvideodatachange",a.ol,a);a.B.unsubscribe("internalvideodatachange",a.ol,a);a.u.unsubscribe("mediasourceattached",a.ol,a);a.B.unsubscribe("statechange",a.ac,a)}; fwa=function(a,b,c,d){a=a.isView()?a.u:a;return new g.JS(a,b,c,d)}; hY=function(a,b){a.da();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.F.resolve(void 0))}; dY=function(a,b){if(!a.ma()&&!a.isFinished()){a.da();var c=4<=a.status.status&&"player-reload-after-handoff"!==b;a.status={status:Infinity,error:b};if(a.u&&a.B){var d=a.B.getVideoData().clientPlaybackNonce;a.u.Ma("gaplessError","cpn."+d+";msg."+b);d=a.u;d.videoData.Ci=!1;c&&jY(d);d.B&&(c=d.B,c.u.Y=!1,c.C&&JE(c))}a.F.reject(void 0);a.dispose()}}; ewa=function(a){var b=a.u.u;b=b.isView()?b.B:0;var c=a.u.getVideoData().isLivePlayback?Infinity:kY(a.u,!0);c=Math.min(a.vf/1E3,c)+b;var d=a.N?100:0;a=c-cY(a.B.D)+d;return{VH:b,JD:a,OA:c,ID:Infinity}}; kwa=function(a){return{FF:a.C.u.Ic,lQ:a.C.B.Ic}}; lY=function(a){g.C.call(this);var b=this;this.api=a;this.F=this.u=this.B=null;this.K=!1;this.D=null;this.N=cwa(this.api.T());this.C=null;this.I=function(){g.$l(function(){mwa(b)})}}; nwa=function(a,b,c,d){d=void 0===d?0:d;a.da();!a.B||mY(a);a.D=new dx;a.B=b;var e=c,f=a.api.Zb(),h=f.getVideoData().isLivePlayback?Infinity:1E3*kY(f,!0);e>h&&(e=h-a.N.B,a.K=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.api.addEventListener(g.bE("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.F=new g.ZD(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.F));f=d/=1E3;e=b.getVideoData().na;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/ 1E3,kY(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,kY(b)+l));f=Rga(e,h)||d;f!==d&&a.B.Ma("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.B;d.getVideoData().Pn=!0;d.getVideoData().Ci=!0;gT(d,!0);e="";a.u&&(e=g.nY(a.u.F.provider),f=a.u.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ma("queued",e);0!==b&&d.seekTo(b+.01,{qp:!0,Xy:3});a.C=new eY(a.N,a.api.Zb(),a.B,c);c=a.C;c.da();Infinity!==c.status.status&&(hY(c,1),c.u.subscribe("internalvideodatachange", c.ol,c),c.B.subscribe("internalvideodatachange",c.ol,c),c.u.subscribe("mediasourceattached",c.ol,c),c.B.subscribe("statechange",c.ac,c),c.u.subscribe("newelementrequired",c.gE,c),c.ol());return a.D}; mwa=function(a){Pe(a,function c(){var d=this,e,f,h,l;return xa(c,function(m){switch(m.u){case 1:e=d;if(d.ma())return m["return"]();d.da();if(!d.D||!d.B)return d.da(),m["return"]();d.K&&oY(d.api.Zb(),!0,!1);f=null;if(!d.C){m.u=2;break}m.C=3;return ra(m,iwa(d.C),5);case 5:sa(m,2);break;case 3:f=h=ua(m);case 2:return owa(d.api.app,d.B),py("vqsp",function(){var n=e.B.getPlayerType();g.cN(e.api.app,n)}),py("vqpv",function(){e.api.playVideo()}),f&&pwa(d.B,f.message),l=d.D,mY(d),m["return"](l.resolve(void 0))}})})}; mY=function(a){if(a.u){var b=a.u;a.api.removeEventListener(g.bE("vqueued"),a.I);b.removeCueRange(a.F);a.u=null;a.F=null}a.C&&(a.C.isFinished()||(b=a.C,Infinity!==b.status.status&&dY(b,"Canceled")),a.C=null);a.D=null;a.B=null;a.K=!1}; qwa=function(){var a=Ao();return!(!a||"visible"===a)}; swa=function(a){var b=rwa();b&&document.addEventListener(b,a,!1)}; twa=function(a){var b=rwa();b&&document.removeEventListener(b,a,!1)}; rwa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[zo+"VisibilityState"])return"";a=zo+"visibilitychange"}return a}; pY=function(){g.O.call(this);var a=this;this.fullscreen=0;this.C=this.pictureInPicture=this.B=this.u=this.inline=!1;this.D=function(){a.Ve()}; swa(this.D);this.F=this.getVisibilityState(this.B,this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.C)}; uwa=function(a){this.end=this.start=a}; rY=function(a,b,c){g.C.call(this);var d=this;this.api=a;this.C=b;this.u=c;this.fa=new Map;this.D=new Map;this.B=[];this.ea=NaN;this.P=this.I=null;this.ca=new g.F(function(){qY(d,d.ea)}); this.events=new g.cR(this);this.isLiveNow=!0;this.ka=g.P(this.C.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.F=new g.F(function(){d.K=!0;d.u.Ma("sdai","aftimeout."+d.ka.toString());vwa(d,!0)},this.ka); this.K=!1;this.Y=new Map;this.X=[];this.N=null;this.W=[];this.u.getPlayerType();wwa(this.u,this);g.D(this,this.ca);g.D(this,this.events);g.D(this,this.F);this.events.R(this.api,g.bE("serverstitchedcuerange"),this.LK);this.events.R(this.api,g.cE("serverstitchedcuerange"),this.MK)}; Bwa=function(a,b,c,d,e){if(g.Q(a.C.experiments,"web_player_ss_timeout_skip_ads")&&xwa(a,d,d+c))return a.u.Ma("sdai","adskip_"+d),"";a.K&&a.u.Ma("sdai","adaftto");var f=a.u;e=void 0===e?d+c:e;if(d>e)return sY(a,"Invalid playback enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.Cc();if(dh)return sY(a,"Invalid playback parentReturnTimeMs="+e+" is greater than parentDurationMs="+ h),"";h=null;for(var l=g.q(a.B),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.hc&&dm.hc)return sY(a,"Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} overlaps existing ChildPlayback "+tY(m))),"";if(e===m.hc)return sY(a,"Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} added after existing ChildPlayback "+tY(m))),""; d===m.Tc&&(h=m)}l="childplayback_"+ywa++;m={Ad:uY(c,!0),vf:Infinity,target:null};var n=b.raw_player_response;if(!n&&!g.Q(a.C.experiments,"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b.cpn||(b.cpn=a.jw());b={Ac:l,playerVars:b,playerType:2,durationMs:c,hc:d,Tc:e,gg:m,playerResponse:n,cpn:b.cpn};a.B=a.B.concat(b).sort(function(r,t){return r.hc-t.hc}); h?(b.ej=h.ej,zwa(h,{Ad:uY(h.durationMs,!0),vf:Infinity,target:b})):(b.ej=b.cpn,d={Ad:uY(d,!1),vf:d,target:b},a.fa.set(d.Ad,d),a.da(),f.addCueRange(d.Ad));d=Awa(b.hc,b.hc+b.durationMs);a.D.set(d,b);f.addCueRange(d);a.F.isActive()&&(a.K=!1,a.F.stop(),vwa(a,!1));a.da();return l}; uY=function(a,b){return new g.ZD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"serverstitchedtransitioncuerange",priority:7})}; Awa=function(a,b){return new g.ZD(a,b,{namespace:"serverstitchedcuerange",priority:7})}; zwa=function(a,b){a.gg=b}; vY=function(a,b,c){c=void 0===c?0:c;var d=0;a=g.q(a.B);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.hc/1E3+d,h=f+e.durationMs/1E3;if(f>b+c)break;if(h>b)return{eh:e,Rk:b-d};d=h-e.Tc/1E3}return{eh:null,Rk:b-d}}; qY=function(a,b){var c=a.P||a.api.Zb().getPlayerState();wY(a,!0);var d=vY(a,b).Rk;a.da();a.da();a.u.seekTo(d);d=a.api.Zb();var e=d.getPlayerState();g.IL(c)&&!g.IL(e)?d.playVideo():g.U(c,4)&&!g.U(e,4)&&d.pauseVideo()}; wY=function(a,b){a.ea=NaN;a.ca.stop();a.I&&b&&xY(a.I);a.P=null;a.I=null}; NT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.da();for(var d=b,e=c,f=g.q(a.fa),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.vf>=d&&l.target&&l.target.Tc<=e&&(a.u.removeCueRange(h),a.fa["delete"](h))}d=b;e=c;f=[];h=g.q(a.B);for(l=h.next();!l.done;l=h.next())l=l.value,(l.hce)&&f.push(l);a.B=f;d=b;e=c;f=g.q(a.D.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.u.removeCueRange(h),a.D["delete"](h));d=vY(a,b/ 1E3);b=d.eh;d=d.Rk;b&&(d=1E3*d-b.hc,Cwa(a,b,d,b.hc+d));(b=vY(a,c/1E3).eh)&&sY(a,"Invalid clearEndTimeMs="+c+" that falls during "+tY(b)+".Child playbacks can only have duration updated not their start.")}; Cwa=function(a,b,c,d){a.da();b.durationMs=c;b.Tc=d;c={Ad:uY(c,!0),vf:c,target:null};b.gg=c;c=null;d=g.q(a.D);for(var e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;e.next().value.Ac===b.Ac&&(c=f)}c&&(a.u.removeCueRange(c),c=Awa(b.hc,b.hc+b.durationMs),a.D.set(c,b),a.u.addCueRange(c))}; tY=function(a){return"playback={timelinePlaybackId="+a.Ac+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.hc+" parentReturnTimeMs="+a.Tc+"}"}; Vha=function(a,b,c,d){if(Dwa(a,c))return null;var e=a.Y.get(c);e||(e=0,a.C.aa("web_player_ss_media_time_offset")&&(e=0===a.u.getStreamTimeOffset()?a.u.tc():a.u.getStreamTimeOffset()),e=vY(a,b+e,1).eh);var f=Number(d.split(";")[0]);if(e&&e.playerResponse&&e.playerResponse.streamingData&&(b=e.playerResponse.streamingData.adaptiveFormats)){var h=b.find(function(m){return m.itag===f}); if(h&&h.url){b=a.u.getVideoData();var l=b.na.u[d].index.AB(c-1);d=h.url;l&&l.u&&(d=d.concat("&daistate="+l.u));(b=b.clientPlaybackNonce)&&(d=d.concat("&cpn="+b));e.ej&&(b=Ewa(a,e.ej),0=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.X.push(new uwa(b))}; Dwa=function(a,b){for(var c=g.q(a.X),d=c.next();!d.done;d=c.next())if(d=d.value,b>=d.start&&b<=d.end)return!0;return!1}; sY=function(a,b){a.u.Ma("timelineerror",b)}; Ewa=function(a,b){for(var c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.ej===b&&e.cpn&&c.push(e.cpn);return c}; xwa=function(a,b,c){if(!a.W.length)return!1;a=g.q(a.W);for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=1E3*e.startSecs;e=1E3*e.durationSecs+d;if(b>d&&bd&&ce)return zY(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.Cc();if(dh)return zY(a,"e.returnAfterDuration parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.u),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.hc&&dm.hc)return zY(a,"e.overlappingReturn"),a.da(),"";if(e===m.hc)return zY(a,"e.outOfOrder"),a.da(),"";d===m.Tc&&(h=m)}l="childplayback_"+Hwa++;m={Ad:AY(c,!0),vf:Infinity,target:null};var n={Ac:l,playerVars:b,playerType:2,durationMs:c,hc:d,Tc:e,gg:m};a.u=a.u.concat(n).sort(function(t,w){return t.hc-w.hc}); h?Iwa(a,h,{Ad:AY(h.durationMs,!0),vf:a.F.aa("timeline_manager_transition_killswitch")?Infinity:h.gg.vf,target:n}):(b={Ad:AY(d,!1),vf:d,target:n},a.I.set(b.Ad,b),a.da(),f.addCueRange(b.Ad));b=g.Q(a.F.experiments,"html5_gapless_preloading");if(a.B===a.api.Zb()&&(f=1E3*f.getCurrentTime(),f>=n.hc&&fb)break;if(h>b)return{eh:e,Rk:b-f};c=h-e.Tc/1E3}return{eh:null,Rk:b-c}}; Gwa=function(a,b){var c=a.K||a.api.Zb().getPlayerState();EY(a,!0);var d=g.Q(a.F.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:FY(a.B),e=DY(a,d);d=e.eh;e=e.Rk;var f=d&&!BY(a,d)||!d&&a.B!==a.api.Zb(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||CY(a);a.da();d?(a.da(),Jwa(a,d,e,c)):(a.da(),GY(a,e,c))}; GY=function(a,b,c){var d=a.B;if(d!==a.api.Zb()){var e=d.getPlayerType();g.cN(a.api.app,e)}d.seekTo(b);Pwa(a,c)}; Jwa=function(a,b,c,d){var e=BY(a,b);if(!e){g.cN(a.api.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.rG(a.F,b.playerVars);f.Ac=b.Ac;HY(a.api.app,f,b.playerType,void 0)}f=a.api.Zb();e||(b=b.gg,a.da(),f.addCueRange(b.Ad));f.seekTo(c);Pwa(a,d)}; Pwa=function(a,b){var c=a.api.Zb(),d=c.getPlayerState();g.IL(b)&&!g.IL(d)?c.playVideo():g.U(b,4)&&!g.U(d,4)&&c.pauseVideo()}; EY=function(a,b){a.X=NaN;a.W.stop();a.D&&b&&xY(a.D);a.K=null;a.D=null}; BY=function(a,b){var c=a.api.Zb();return!!c&&c.getVideoData().Ac===b.Ac}; Qwa=function(a){var b=a.u.find(function(d){return BY(a,d)}); if(b){CY(a);var c=new g.CL(8);b=Owa(a,b)/1E3;GY(a,b,c)}}; OT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.da();for(var d=b,e=c,f=g.q(a.I),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.vf>=d&&l.target&&l.target.Tc<=e&&(a.B.removeCueRange(h),a.I["delete"](h))}d=b;e=c;f=[];h=g.q(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.hc>=d&&l.Tc<=e){var m=a;m.N===l&&CY(m);BY(m,l)&&g.dN(m.api,l.playerType)}else f.push(l);a.u=f;d=DY(a,b/1E3);b=d.eh;d=d.Rk;b&&(d*=1E3,Rwa(a,b,d,b.Tc===b.hc+b.durationMs?b.hc+ d:b.Tc));(b=DY(a,c/1E3).eh)&&zY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Ac+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.hc+" parentReturnTimeMs="+b.Tc+"}.Child playbacks can only have duration updated not their start."))}; Rwa=function(a,b,c,d){a.da();b.durationMs=c;b.Tc=d;d={Ad:AY(c,!0),vf:c,target:null};Iwa(a,b,d);BY(a,b)&&1E3*a.api.Zb().getCurrentTime()>c&&(b=Owa(a,b)/1E3,c=a.api.Zb().getPlayerState(),GY(a,b,c))}; zY=function(a,b){a.B.Ma("timelineerror",b)}; Twa=function(a){a&&"web"!==a&&Swa.includes(a)}; KY=function(a,b){g.C.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.u=new g.F(function(){IY(c);JY(c)}); g.D(this,this.u)}; IY=function(a){var b=(0,g.N)();a.data.forEach(function(c){c.expire=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.B=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.u=null:c.u=f.isVisible?f.intersectionRatio:0:c.u=f.intersectionRatio},e):null)&&this.B.observe(a)}; SY=function(a,b){this.u=a;this.C=b;this.B=null;this.D=[];this.F=!1}; g.TY=function(a){a.B||(a.B=a.u.createMediaElementSource(a.C.Na()));return a.B}; g.UY=function(a){for(var b;0f?h={width:b.width,height:b.width/e,aspectRatio:e}:ee?h.width=h.height*c:cMath.abs(aZ*b-a)||1>Math.abs(aZ/a-b)?aZ:a/b}; ZY=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.Z(a.app);if(!b||bZ(b))return!1;var c=g.JI(a.app.B);a=!g.U(c,2)||!g.Q(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ci;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()}; YY=function(a){var b="3"===a.app.T().controlsType&&!a.I&&ZY(a)&&!a.app.jb||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.ea):g.Q(a.app.T().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.ea)}; bxa=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=axa(a,b,a.getVideoAspectRatio()),f=kr();if(ZY(a)){var h=$wa(a);var l=isNaN(h)||g.ur||MD&&g.bC;lr&&!g.Ud(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.ag(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.ag((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.bC&&(h=l.width-b.height*h,0h&&(m=g.P(a.C.experiments,"html5_license_server_error_retry_limit")||3);(h=d.u.B>=m)||(h=a.fa&&36E4<(0,g.N)()-a.Y);h&&(l=!0,e="drm.net.retryexhausted");a.da();iZ(a,"onlcsrqerr."+e+";"+f);a.error(e,l,f);a.shouldRetry(l,d)&&zxa(a,d)}}); g.D(a,b);Axa(a,b)}}else a.error("drm.unavailable",!1,"km.empty")}; wxa=function(a,b){a.da();iZ(a,"sdpvrq");if("widevine"!==a.B.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.C.deviceParams);c=g.Ed("https://web.archive.org/web/20201214145215/https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);var d={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:hu(b)}),responseType:"arraybuffer"}; g.hs(c,d,3,500).then(io(function(e){if(!a.ma()){e=new Uint8Array(e.response);var f=hu(e);try{var h=JSON.parse(f)}catch(l){}h&&h.signedResponse?(a.V("ctmp","drminfo","provisioning"),a.D&&a.D.update(e)):(h=h&&h.error&&h.error.message,e="e.parse",h&&(e+=";m."+h),a.error("drm.provision",!0,e))}}),io(function(e){a.ma()||a.error("drm.provision",!0,"e."+e.errorCode+";c."+(e.xhr&&e.xhr.status))}))}}; sxa=function(a,b){a.ma()||0>=b.size||(b.forEach(function(c,d){var e=WB(a.B)?d:c,f=new Uint8Array(WB(a.B)?c:d);WB(a.B)&&Bxa(f);var h=g.jf(f,4);Bxa(f);f=g.jf(f,4);a.u[h]?a.u[h].status=e:a.u[f]?a.u[f].status=e:a.u[h]={type:"",status:e}}),a.da("Key statuses changed: "+Cxa(a,",")),iZ(a,"onkeystatuschange"),a.status="kc",a.V("keystatuseschange",a))}; kZ=function(a){var b;if(b=a.P&&null!=a.D)a=a.D,b=!(!a.u||!a.u.keyStatuses);return b}; Axa=function(a,b){a.status="km";AB("drm_net_s");if(a.videoData.useInnertubeDrmService()){var c=new g.Or(a.C.fa),d=g.np(c.Nf||g.op());d.drmSystem=Dxa[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.jf(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);if(!d.context||!d.context.client){a.da();a.error("drm.net",!0,"t.r;ic.0");return}var e=a.C.deviceParams; e&&(d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver);d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Zf&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Zf,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.xh&& (d.context.user.kidsParent={oauthToken:a.videoData.xh});if($B(a.B)){e=a.fairplayKeyId;for(var f=[],h=0;hd;d++)c[2*d]=''.charCodeAt(d);c=a.C.createSession("video/mp4",b,c);return new mZ(null,null,null,null,c)}; pZ=function(a,b){var c=a.I[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c}; Oxa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=a&&(c=.75*a),b=.5*(a- c),c=new gZ(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new rZ(g.Q(a,"disable_license_delay"),b,this);break a;default:c=null}if(this.I=c)g.D(this,this.I),this.I.subscribe("rotated_need_key_info_ready",this.cA,this);this.da("Created, key system "+this.u.u+", final EME "+cC(this.B.experiments));tZ(this,"cks"+this.u.Ke());c=this.u;"com.youtube.widevine.forcehdcp"===c.u&&c.D&&(this.Ha=new qZ(this.videoData.kh,this.B.experiments),g.D(this,this.Ha))}; Sxa=function(a){var b=oZ(a.F);b?b.then(io(function(){Txa(a)}),io(function(c){if(!a.ma()){a.da(); M(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.V("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.da(),tZ(a,"mdkrdy"),a.W=!0); a.X&&(b=oZ(a.X))}; Uxa=function(a,b,c){a.Aa=!0;c=new mx(b,c);a.B.aa("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));a.B.aa("html5_process_all_encrypted_events")?vZ(a,c):a.B.aa("html5_eme_loader_sync")?vZ(a,c):0!==a.D.length&&a.videoData.Ja&&a.videoData.Ja.Dc()?wZ(a):vZ(a,c)}; Vxa=function(a,b){tZ(a,"onneedkeyinfo");g.Q(a.B.experiments,"html5_eme_loader_sync")&&(a.P.get(b.initData)||a.P.set(b.initData,b));vZ(a,b)}; Xxa=function(a,b){if(VB(a.u)&&!a.fa){var c=Tfa(b);if(0!==c.length){var d=new mx(c);a.fa=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(e){e.createMediaKeys().then(function(f){Wxa(a,f,d)})},null)}}}; Wxa=function(a,b,c){var d=b.createSession(),e=a.C.values[0],f=uxa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);Jxa(h,d,a.u.C,f,"playready")}); d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.ea=!0,Yxa(a,Fxa(e,a.ea)))}); d.generateRequest("cenc",c.initData)}; vZ=function(a,b){if(!a.ma()){tZ(a,"onInitData");if(g.Q(a.B.experiments,"html5_eme_loader_sync")&&a.videoData.Ja&&a.videoData.Ja.Dc()){var c=a.P.get(b.initData),d=a.K.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.K.remove(c);a.P.remove(c)}a.da();tZ(a,"initd."+b.initData.length+";ct."+b.contentType);"widevine"===a.u.flavor?a.ka&&!a.videoData.isLivePlayback?a.B.aa("html5_process_all_encrypted_events")&&wZ(a):g.Q(a.B.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.Qd||(a.ka=!0,c=b.cryptoPeriodIndex, d=b.u,nx(b),b.Qd||(d&&b.u!==d?a.V("ctmp","cpsmm","emsg."+d+";pssh."+b.u):c&&b.cryptoPeriodIndex!==c&&a.V("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex)),a.V("widevine_set_need_key_info",b)):a.cA(b)}}; Txa=function(a){if(!a.ma())if(g.Q(a.B.experiments,"html5_drm_set_server_cert")&&!g.cD(a.B)){var b=Nxa(a.F);b?b.then(io(function(c){CG(a.videoData)&&a.V("ctmp","ssc",c)}),io(function(c){a.V("ctmp","ssce","n."+c.name+";m."+c.message)})).then(io(function(){xZ(a)})):xZ(a)}else xZ(a)}; xZ=function(a){a.ma()||(a.W=!0,a.da(),tZ(a,"onmdkrdy"),wZ(a))}; wZ=function(a){if(a.Aa&&a.W&&!a.Y){for(;a.D.length;){var b=a.D[0];if(a.C.get(b.initData))if("fairplay"===a.u.flavor)a.C.remove(b.initData);else{a.D.shift();continue}nx(b);break}a.D.length&&a.createSession(a.D[0])}}; Yxa=function(a,b){var c=lC("auto",b,!1,"l");if(g.Q(a.B.experiments,"html5_drm_initial_constraint_from_config")?a.videoData.Qo:g.Q(a.B.experiments,"html5_drm_start_from_null_constraint")){if(kC(a.N,c))return}else if(oC(a.N,b))return;a.N=c;a.V("qualitychange");a.da();tZ(a,"updtlq"+b)}; tZ=function(a,b,c){c=void 0===c?!1:c;a.ma()||(a.da(),(CG(a.videoData)||c)&&a.V("ctmp","drmlog",b))}; Zxa=function(a){var b;if(b=g.dr()){var c;b=!(null===(c=a.F.B)||void 0===c||!c.u)}b&&(b=a.F,b=b.B&&b.B.u?b.B.u():null,tZ(a,"mtr."+g.jf(b,3),!0))}; yZ=function(a,b,c){g.O.call(this);this.videoData=a;this.Ra=b;this.playerVisibility=c;this.K=0;this.B=this.u=null;this.N=this.D=this.C=!1;this.I=this.F=0}; BZ=function(a,b,c){var d=!1,e=a.K+3E4<(0,g.N)()||!1,f;if(f=a.videoData.aa("html5_pause_on_nonforeground_platform_errors")&&!e)f=a.playerVisibility,f=!!(f.u||f.isInline()||f.isBackground()||f.pictureInPicture||f.C);f&&(c.nonfg="paused",e=!0,a.V("pausevideo"));f=a.videoData.La;if(!e&&((null===f||void 0===f?0:yw(f))||(null===f||void 0===f?0:ww(f))))if(a.videoData.aa("html5_disable_codec_on_platform_errors"))a.Ra.D.N.add(f.Eb),d=e=!0,c.cfalls=f.Eb;else{var h;if(h=a.videoData.aa("html5_disable_codec_for_playback_on_error")&& a.u){h=a.u.K;var l=f.Eb;h.va.has(l)?h=!1:(h.va.add(l),h.Y=-1,BD(h,h.F),h=!0)}h&&(d=e=!0,c.cfallp=f.Eb)}if(!e)return $xa(a,c);a.K=(0,g.N)();e=a.videoData;e=e.Pg?e.Pg.oB()=a.Ra.va)return!1;b.exiled=""+a.Ra.va;zZ(a,"qoe.start15s",b);a.V("playbackstalledatstart");return!0}; bya=function(a){if("GAME_CONSOLE"!==a.Ra.deviceParams.cplatform)try{window.close()}catch(b){}}; aya=function(a){return a.C||"yt"!==a.Ra.X?!1:a.videoData.Gg?25>a.videoData.Qi:!a.videoData.Qi}; AZ=function(a){a.C||(a.C=!0,a.V("signatureexpiredreloadrequired"))}; cya=function(a,b){if(a.B&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.B.Ah();b.details.merr=c?c.toString():"0";b.details.msg=a.B.yn()}}; dya=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav}; fya=function(a,b,c){if("403"===b.details.rc){var d=b.errorCode;d="net.badstatus"===d||"manifest.net.retryexhausted"===d}else d=!1;if(!d)return!1;b.details.sts="18606";if(aya(a))return c?(a.D=!0,a.V("releaseloader")):(b.u&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.u=!1),zZ(a,b.errorCode,b.details),AZ(a)),!0;6048E5<(0,g.N)()-a.Ra.Ha&&eya(a,"signature");return!1}; eya=function(a,b){try{window.location.reload();zZ(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.Ra.aa("tvhtml5_retire_old_players")&&g.cD(a.Ra)&&bya(a)}; gya=function(a,b){a.Ra.D.B=!1;zZ(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.V("formatupdaterequested")}; CZ=function(a,b,c,d){a.V("clienttemp",b,c,(void 0===d?{Ly:!1}:d).Ly)}; zZ=function(a,b,c){a.V("qoeerror",b,c)}; hya=function(a,b,c,d){this.videoData=a;this.u=b;this.reason=c;this.B=d}; iya=function(a){navigator.mediaCapabilities?DZ(a.videoInfos).then(function(){return a},function(){return a}):ks(a)}; DZ=function(a){var b=navigator.mediaCapabilities;if(!b)return ks(a);var c=a.map(function(d){return b&&b.decodingInfo({type:"media-source",video:d.video?{contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:8*d.wb||1E6,framerate:d.video.fps||30}:null})}); return qda(c).then(function(d){for(var e=0;eCC(a.u.lc,"sticky-lifetime")?"auto":FZ():FZ()}; mya=function(a,b){var c=new jC(0,0,!1,"o");if(a.aa("html5_varispeed_playback_rate")&&1(0,g.N)()-a.F?0:f||0h?a.C+1:0;if(!e||g.cD(a.u))return!1;a.B=d>e?a.B+1:0;if(3!==a.B)return!1;pya(a,b.videoData.La);a.V("ctmp","dfd",rya());return!0}; tya=function(a,b){return 0>=g.P(a.u.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.Ka()&&32=l){d=l;break}}return new jC(0,d,!1,"b")}; wya=function(a,b){a.aa("html5_log_media_perf_info")&&(a.V("ctmp","perfdb",rya()),a.V("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.V("ctmp","mcdb",b.Ja.videoInfos.filter(function(c){return!1===c.D}).map(function(c){return c.Tb()}).join("-")))}; rya=function(){var a=Hb(GZ(),function(b){return""+b}); return g.oA(a)}; HZ=function(a,b){g.C.call(this);this.provider=a;this.I=b;this.u=-1;this.F=!1;this.B=-1;this.playerState=new g.CL;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.F(this.send,6E4,this);this.C=!1;g.D(this,this.delay)}; xya=function(a){0<=a.u||(3===a.provider.getVisibilityState()?a.F=!0:(a.u=g.nY(a.provider),a.delay.start()))}; yya=function(a){if(!(0>a.B)){var b=g.nY(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.KL(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; zya=function(a){switch(a.u.Fs){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}}; Aya=function(a){return(!a.aa("html5_health_to_gel")||a.u.Ha+36E5<(0,g.N)())&&(a.aa("html5_health_to_gel_canary_killswitch")||a.u.Ha+36E5<(0,g.N)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===zya(a))?a.aa("html5_health_to_qoe"):!0}; IZ=function(a,b,c,d,e){var f={format:"RAW"},h={};Hp(a)&&Ip()&&(c&&(h["X-Goog-Visitor-Id"]=c),b&&(h["X-Goog-PageId"]=b),d&&(h.Authorization="Bearer "+d),c||d||b)&&(f.withCredentials=!0);0a.F.KD+100&&a.F){var d=a.F,e=d.isAd;a.ea=1E3*b-d.bQ-(1E3*c-d.KD)-d.TP;a.Ma("gllat","l."+a.ea.toFixed()+";prev_ad."+ +e);delete a.F}}; NZ=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.nY(a.provider);var c=a.provider.D();if(!isNaN(a.W)&&!isNaN(c.B)){var d=c.B-a.W;0a.u)&&2m;!(1=e&&(M(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.Q(a.u.experiments,"html5_validate_yt_now")),c=b(); a.C=function(){return Math.round(b()-c)/1E3}; a.W()}return a.C}; Bya=function(a){if(navigator.connection&&navigator.connection.type)return cza[navigator.connection.type]||cza.other;if(g.cD(a.u)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; RZ=function(a){var b=new aza;b.B=a.Me().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!==c&&(b.visibilityState=c);a.u.Zc&&(b.C=1);c=a.getAudioTrack();c.u&&c.u.id&&"und"!==c.u.id&&(b.u=c.u.id);b.connectionType=Bya(a);b.volume=a.Me().volume;b.muted=a.Me().muted;b.clipId=a.Me().clipid||"-";b.Km=a.videoData.Km||"-";return b}; dza=function(a){this.D=this.mediaTime=NaN;this.B=this.u=!1;this.C=.001;a&&(this.C=a)}; e_=function(a,b){return b>a.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.D=c;return!1}; eza=function(a,b){this.videoData=a;this.Ja=b}; fza=function(a,b,c){return b.qr(c).then(function(){return ks(new eza(b,b.Ja))},function(d){d instanceof Error&&g.jo(d); d=b.isLivePlayback&&!g.hC(a.D,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Dg,drm:""+ +hH(b),f18:""+ +(0<=b.Lq.indexOf("itag=18")),c18:""+ +gA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.na&&(hH(b)?(e.f142=""+ +!!b.na.u["142"],e.f149=""+ +!!b.na.u["149"],e.f279=""+ +!!b.na.u["279"]):(e.f133=""+ +!!b.na.u["133"],e.f140=""+ +!!b.na.u["140"],e.f242=""+ +!!b.na.u["242"]),e.cAVC=""+ +hA('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +hA('audio/mp4; codecs="mp4a.40.2"'), e.cVP9=""+ +hA('video/webm; codecs="vp9"'));if(b.Xc){e.drmsys=b.Xc.u;var f=0;b.Xc.B&&(f=Object.keys(b.Xc.B).length);e.drmst=""+f}return new nA(d,!0,e)})}; h_=function(a,b,c){g.O.call(this);this.videoData=a;this.experiments=b;this.N=c;this.B=[];this.D=0;this.C=!0;this.I=!1;this.K=0;c=new gza;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.Ai?c.B=3:g.tH(a)&&(c.B=2);g.Q(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.I=!0);var d=cH(a);c.F=2===d||-1===d;c.F&&(c.W++,21530001===aH(a)&&(c.K=g.P(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(ar("trident/")||ar("edge/"))d=g.P(b,"html5_platform_minimum_readahead_seconds")||3,c.C=Math.max(c.C, d);g.P(b,"html5_minimum_readahead_seconds")&&(c.C=g.P(b,"html5_minimum_readahead_seconds"));g.P(b,"html5_maximum_readahead_seconds")&&(c.N=g.P(b,"html5_maximum_readahead_seconds"));g.Q(b,"html5_force_adaptive_readahead")&&(c.D=!0);g.P(b,"html5_allowable_liveness_drift_chunks")&&(c.u=g.P(b,"html5_allowable_liveness_drift_chunks"));g.P(b,"html5_readahead_ratelimit")&&(c.P=g.P(b,"html5_readahead_ratelimit"));switch(aH(a)){case 21530001:c.u=(c.u+1)/5,"LOW"===a.latencyClass&&(c.u*=2),c.X=g.Q(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy= c;this.F=1!==this.policy.B;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Ai&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(aH(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.F&&b++;this.u=g_(this,b);this.da()}; hza=function(a,b){var c=a.u;(void 0===b?0:b)&&a.policy.X&&3===cH(a.videoData)&&--c;return i_(a)*c}; k_=function(a,b){var c=j_(a);var d=a.policy.u;a.I||(d=Math.max(d-1,0));d*=i_(a);return b>=c-d}; j_=function(a){return Math.max(a.N()-hza(a,!0),a.videoData.Cc())}; iza=function(a,b,c){b=k_(a,b);c||b?b&&(a.C=!0):a.C=!1;a.F=2===a.policy.B||3===a.policy.B&&a.C}; jza=function(a,b){var c=k_(a,b);a.I!==c&&a.V("livestatusshift",c);a.I=c}; i_=function(a){return a.videoData.na?TA(a.videoData.na)||5:5}; g_=function(a,b){b=Math.max(Math.max(a.policy.W,Math.ceil(a.policy.C/i_(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.N/i_(a))),b)}; gza=function(){this.W=1;this.C=0;this.N=Infinity;this.P=0;this.D=!0;this.u=2;this.B=1;this.F=!1;this.K=NaN;this.X=this.I=!1}; n_=function(a,b,c,d,e){g.C.call(this);this.C=a;this.videoData=b;this.V=c;this.visibility=d;this.Y=e;this.B=this.D=null;this.K=this.u=0;this.I={};this.playerState=new g.CL;this.F=new g.F(this.ca,1E3,this);g.D(this,this.F);this.ka=new l_({delayMs:g.P(this.C.experiments,"html5_seek_timeout_delay_ms")});this.X=new l_({delayMs:g.P(this.C.experiments,"html5_long_rebuffer_threshold_ms")});this.la=m_(this,"html5_seek_set_cmt");this.fa=m_(this,"html5_seek_jiggle_cmt");this.ea=m_(this,"html5_seek_new_elem"); m_(this,"html5_decoder_freeze_timeout");this.Ca=m_(this,"html5_unreported_seek_reseek");this.P=m_(this,"html5_long_rebuffer_jiggle_cmt");this.W=m_(this,"html5_reload_element_long_rebuffer");this.N=m_(this,"html5_ads_preroll_lock_timeout");this.va=new l_({delayMs:g.P(this.C.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Lo:!g.Q(this.C.experiments,"html5_report_slow_ads_as_error")})}; m_=function(a,b){var c=g.P(a.C.experiments,b+"_delay_ms"),d=g.Q(a.C.experiments,b+"_cfl");return new l_({delayMs:c,Lo:d})}; o_=function(a,b,c,d,e,f,h){kza(b,c)?(d=a.qb(b),d.wn=h,d.wdup=a.I[e]?"1":"0",a.V("qoeerror",e,d),a.I[e]=!0,b.Lo||f()):(b.mu&&b.B&&!b.D?(f=(0,g.N)(),d?b.u||(b.u=f):b.u=0,c=!d&&f-b.B>b.mu,f=b.u&&f-b.u>b.py||c?b.D=!0:!1):f=!1,f&&(f=a.qb(b),f.wn=h,f.we=e,f.wsuc=""+ +d,h=g.oA(f),a.V("ctmp","workaroundReport",h),d&&(b.reset(),a.I[e]=!1)))}; l_=function(a){a=void 0===a?{}:a;var b=void 0===a.py?1E3:a.py,c=void 0===a.mu?3E4:a.mu,d=void 0===a.Lo?!1:a.Lo;this.F=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.py=b;this.mu=c;this.Lo=d;this.u=this.B=this.C=this.startTimestamp=0;this.D=!1}; kza=function(a,b){if(!a.F||a.B)return!1;if(!b)return a.reset(),!1;var c=(0,g.N)();if(!a.startTimestamp)a.startTimestamp=c,a.C=0;else if(a.C>=a.F)return a.B=c,!0;a.C+=1;return!1}; q_=function(a,b,c,d){g.O.call(this);var e=this;this.videoData=a;this.W=b;this.visibility=c;this.Xa=d;this.policy=new lza(this.W);this.N=new n_(this.W,this.videoData,(0,g.z)(this.V,this),this.visibility,this.Xa);a={};this.ka=(a.seekplayerrequired=this.eQ,a.videoformatchange=this.JK,a);this.playbackData=null;this.Aa=new Fs;this.P=this.B=this.D=this.u=null;this.C=NaN;this.F=0;this.I=null;this.la=NaN;this.K=this.X=null;this.ca=this.Y=!1;this.ea=new g.F(function(){mza(e,!1)},this.policy.u); this.jb=new g.F(function(){p_(e)}); this.Ca=new g.F(function(){e.da();e.Y=!0;nza(e)}); this.Qa=this.timestampOffset=0;this.va=!0;this.Ha=0;this.Va=NaN;this.fa=new g.F(function(){var f=e.W.lc;f.u+=1E4/36E5;f.u-f.C>1/6&&(zC(f),f.C=f.u);e.fa.start()},1E4); this.aa("html5_unrewrite_timestamps")?this.ka.timestamp=this.Yn:this.ka.timestamp=this.KK;g.D(this,this.Aa);g.D(this,this.ea);g.D(this,this.Ca);g.D(this,this.jb);g.D(this,this.fa)}; oza=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.P=new Hha(function(){a:{if(a.playbackData&&a.playbackData.Ja.Dc()){if($G(a.videoData)&&a.D){var c=a.D.Qa.u()||0;break a}if(a.videoData.na){c=a.videoData.na.N;break a}}c=0}return c}),a.B=new h_(a.videoData,a.W.experiments,function(){return a.Gc(!0)})); a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9=e.B&&cd.D||g.A()-d.K=a.Gc()-.1)a.C=a.Gc(),a.I.resolve(a.Gc()),a.V("ended");else try{var c=a.C-a.timestampOffset;a.da();a.u.seekTo(c);a.N.u=c;a.la=c;a.F=a.C}catch(d){a.da()}}}; vza=function(a){if(!a.u||0===a.u.rg()||0a;a++)this.F[a]^=92,this.C[a]^=54;this.reset()}; yza=function(a,b,c){for(var d=[],e=0;16>e;e++)d.push(b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3]),c+=4;for(b=16;64>b;b++)c=d[b-7]+d[b-16],e=d[b-2],c+=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,e=d[b-15],c+=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,d.push(c);b=a.u[0];c=a.u[1];e=a.u[2];for(var f=a.u[3],h=a.u[4],l=a.u[5],m=a.u[6],n=a.u[7],p,r,t=0;64>t;t++)p=n+xza[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),r=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b= p+r;a.u[0]=b+a.u[0]|0;a.u[1]=c+a.u[1]|0;a.u[2]=e+a.u[2]|0;a.u[3]=f+a.u[3]|0;a.u[4]=h+a.u[4]|0;a.u[5]=l+a.u[5]|0;a.u[6]=m+a.u[6]|0;a.u[7]=n+a.u[7]|0}; Aza=function(a){var b=new Uint8Array(32),c=64-a.B;55f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.u[c]>>>24,b[4*c+1]=a.u[c]>>>16&255,b[4*c+2]=a.u[c]>>>8&255,b[4*c+3]=a.u[c]&255;zza(a);return b}; zza=function(a){a.u=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.D=0;a.B=0}; Bza=function(a,b,c){return Pe(this,function e(){var f,h,l,m,n,p,r,t;return xa(e,function(w){switch(w.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){w.u=2;break}h=window.crypto.subtle;l={name:"HMAC",hash:{name:"SHA-256"}};m=["sign"];n=new Uint8Array(b.length+c.length);n.set(b);n.set(c,b.length);w.C=3;return ra(w,h.importKey("raw",a,l,!1,m),5);case 5:return p=w.B,ra(w,h.sign(l,p,n),6);case 6:r=w.B;f=new Uint8Array(r);sa(w,2);break;case 3:ua(w);case 2:if(!f){t=new y_(a); t.update(b);t.update(c);var x=Aza(t);t.update(t.F);t.update(x);x=Aza(t);t.reset();f=x}return w["return"](f)}})})}; Dza=function(a,b,c){return Pe(this,function e(){var f,h,l,m,n,p;return xa(e,function(r){switch(r.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){r.u=2;break}h=window.crypto.subtle;l={name:"AES-CTR",counter:c,length:128};r.C=3;return ra(r,Cza(a),5);case 5:return m=r.B,ra(r,h.encrypt(l,m,b),6);case 6:n=r.B;f=new Uint8Array(n);sa(r,2);break;case 3:ua(r);case 2:return f||(p=new zS(a),msa(p,c),f=p.encrypt(b)),r["return"](f)}})})}; Cza=function(a){return window.crypto.subtle.importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])}; z_=function(a){var b=this,c=new zS(a);return function(d,e){return Pe(b,function h(){return xa(h,function(l){msa(c,e);return l["return"](new Uint8Array(c.encrypt(d)))})})}}; A_=function(a){this.u=a;this.iv=lZ(Rs())}; Eza=function(a,b){return Pe(a,function d(){var e=this;return xa(d,function(f){return f["return"](Bza(e.u.B,b,e.iv))})})}; B_=function(a){this.B=a;this.D=this.u=0;this.C=-1}; C_=function(a){var b=kv(a.B,a.u);++a.u;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=kv(a.B,a.u),++a.u,d*=128,c+=(b&127)*d;return c}; D_=function(a,b){for(a.D=b;a.u+1<=a.B.totalLength;){var c=a.C;0>c&&(c=C_(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.C=c;break}switch(e){case 0:C_(a);break;case 1:a.u+=8;break;case 2:c=C_(a);a.u+=c;break;case 5:a.u+=4}}return!1}; E_=function(a,b,c){c=void 0===c?0:c;return D_(a,b)?C_(a):c}; F_=function(a,b){var c=void 0===c?"":c;if(!D_(a,b))return c;c=C_(a);if(!c)return"";var d=iv(a.B,a.u,c);a.u+=c;return g.v.TextDecoder?(new TextDecoder).decode(d):g.Re(d)}; G_=function(a,b){var c=void 0===c?null:c;if(!D_(a,b))return c;c=C_(a);var d=iv(a.B,a.u,c);a.u+=c;return d}; Fza=function(a){this.iv=G_(new B_(a),5)}; Gza=function(a){a=G_(new B_(a),4);this.u=new Fza(new bv([a]))}; Iza=function(a){a=new B_(a);this.u=E_(a,1);this.itag=E_(a,3);this.lastModifiedTime=E_(a,4);this.xtags=F_(a,5);E_(a,6);E_(a,8);E_(a,9,-1);E_(a,10);this.B=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.isAudio="audio"===Hza[tw[""+this.itag]]}; Jza=function(a){this.body=null;a=new B_(a);this.onesieProxyStatus=E_(a,1,-1);this.body=G_(a,4)}; Kza=function(a){a=new B_(a);this.startTimeMs=E_(a,1);this.endTimeMs=E_(a,2)}; Lza=function(a){var b=new B_(a);a=F_(b,3);var c=E_(b,5);this.u=E_(b,7);var d=G_(b,14);this.B=new Kza(new bv([d]));b=F_(b,15);this.C=a+";"+c+";"+b}; Mza=function(a){this.C=a;this.B=!1;this.u=[]}; Nza=function(a){for(;a.u.length&&!a.u[0].isEncrypted;){var b=a.u.shift();a.C(b.streamId,b.buffer)}}; Oza=function(a){var b,c;return Pe(this,function e(){var f=this,h,l,m,n;return xa(e,function(p){switch(p.u){case 1:h=f;if(null===(c=null===(b=window.crypto)||void 0===b?void 0:b.subtle)||void 0===c||!c.importKey)return p["return"](z_(a));l=window.crypto.subtle;p.C=2;return ra(p,Cza(a),4);case 4:m=p.B;sa(p,3);break;case 2:return ua(p),p["return"](z_(a));case 3:return p["return"](function(r,t){return Pe(h,function x(){var y,B;return xa(x,function(E){if(1==E.u){if(n)return E["return"](n(r,t));y={name:"AES-CTR", counter:t,length:128};E.C=2;B=Uint8Array;return ra(E,l.encrypt(y,m,r),4)}if(2!=E.u)return E["return"](new B(E.B));ua(E);n=z_(a);return E["return"](n(r,t))})})})}})})}; H_=function(a){g.O.call(this);var b=this;this.D=a;this.u={};this.C={};this.B=this.iv=null;this.queue=new Mza(function(c,d){b.da();b.V("STREAM_DATA",{id:c,data:d})})}; Pza=function(a,b,c){var d=kv(b,0);b=iv(b,1);d=a.u[d]||null;a.da();d&&(a=a.queue,a.u.push({streamId:d,buffer:b,isEncrypted:c}),a.B||Nza(a))}; Qza=function(a,b){Pe(a,function d(){var e=this,f,h,l,m,n,p,r,t;return xa(d,function(w){switch(w.u){case 1:return e.da(),e.V("PLAYER_RESPONSE_RECEIVED"),f=iv(b),w.C=2,ra(w,e.D(f,e.iv),4);case 4:h=w.B;sa(w,3);break;case 2:return l=ua(w),e.da(),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:l}),w["return"]();case 3:m=new Jza(new bv([h]));if(1!==m.onesieProxyStatus)return n={st:m.onesieProxyStatus},p=new nA("onesie.response.badproxystatus",!1,n),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:p}),w["return"]();r=m.body; t=g.v.TextDecoder?(new TextDecoder).decode(r):g.Re(r);e.da();e.V("PLAYER_RESPONSE_READY",t);w.u=0}})})}; I_=function(){this.u=0;this.C=void 0;this.B=new Uint8Array(4096);this.view=new DataView(this.B.buffer);g.v.TextEncoder&&(this.C=new TextEncoder)}; J_=function(a,b){var c=a.u+b;if(!(a.B.length>=c)){for(var d=2*a.B.length;dd;d++)a.view.setUint8(a.u,c&127|128),c>>=7,a.u+=1;b=Math.floor(b/268435456)}for(J_(a,4);127>=7,a.u+=1;a.view.setUint8(a.u,b);a.u+=1}; L_=function(a,b,c){K_(a,b<<3|2);b=c.length;K_(a,b);J_(a,b);a.B.set(c,a.u);a.u+=b}; M_=function(a,b,c){c=a.C?a.C.encode(c):new Uint8Array(lZ(g.Qe(c)).buffer);L_(a,b,c)}; N_=function(a){return new Uint8Array(a.B.buffer,0,a.u)}; Rza=function(a){var b=a.encryptedOnesiePlayerRequest,c=a.encryptedClientKey,d=a.iv;a=a.hmac;this.serializeResponseAsJson=!0;this.encryptedOnesiePlayerRequest=b;this.encryptedClientKey=c;this.iv=d;this.hmac=a}; O_=function(a){var b=a.value;this.name=a.name;this.value=b}; Sza=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c}; Tza=function(a){this.Sv=a.Sv}; Uza=function(a,b){if(b+1<=a.totalLength){var c=kv(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)c=kv(a,b++);else if(2===c){c=kv(a,b++);var d=kv(a,b++);c=(c&63)+64*d}else if(3===c){c=kv(a,b++);d=kv(a,b++);var e=kv(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=kv(a,b++);d=kv(a,b++);e=kv(a,b++);var f=kv(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),fv(a,c,4)?c=gv(a).getUint32(c-a.C,!0):(d=kv(a,c+2)+256*kv(a,c+3),c=kv(a,c)+256*(kv(a, c+1)+256*d)),b+=5;return[c,b]}; Vza=function(a){this.B=a;this.u=new bv}; Wza=function(a){var b=g.q(Uza(a.u,0));var c=b.next().value;var d=b.next().value;d=g.q(Uza(a.u,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.u.totalLength&&(d=a.u.split(d).xm.split(b),b=d.Cs,d=d.xm,a.B(c,b),a.u=d,Wza(a))}; Yza=function(a){var b,c;a:{var d,e=a.T().Lf;if(e){var f=null===(c=Xza())||void 0===c?void 0:c.primary;if(f&&e.baseUrl){c=new Kv("https://"+f+e.baseUrl);if(e=null===(d=a.Xt)||void 0===d?void 0:d.urlQueryOverride)for(d=Rv(e),d=g.q(Object.entries(d)),e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,c.set(e,f);if(!c.get("id")){e=yC(a.videoId);d=[];if(e)for(e=g.q(e),f=e.next();!f.done;f=e.next())d.push(f.value.toString(16).padStart(2,"0"));d=d.join("");if(!d){c=void 0;break a}c.set("id", d)}break a}}c=void 0}!c&&(null===(b=a.Xt)||void 0===b?0:b.url)&&(c=new Kv(a.Xt.url));if(!c)return"";c.set("ack","1");c.set("cpn",a.clientPlaybackNonce);c.set("opr","1");c.set("pvi","135");c.set("pai","140");c.set("oad","0");c.set("ovd","0");c.set("oaad","0");c.set("oavd","0");return c.Bd()}; P_=function(a,b,c){var d=this;this.videoData=a;this.u=b;this.playerRequest=c;this.xhr=null;this.B=new dx;this.I=!1;this.F=new g.F(this.K,1E4,this);this.D=a.T();this.C=new A_(this.D.Lf.u);this.P=new Vza(function(e,f){d.N.feed(e,f)}); this.N=Zza(this)}; Zza=function(a){var b=new H_(function(c,d){return a.C.decrypt(c,d)}); b.subscribe("FIRST_BYTE_RECEIVED",function(){a.u.tick("orfb");a.I=!0}); b.subscribe("PLAYER_RESPONSE_READY",function(c){a.u.tick("oprr");a.B.resolve(c);a.F.stop()}); b.subscribe("PLAYER_RESPONSE_RECEIVED",function(){a.u.tick("orpr")}); b.subscribe("PLAYER_RESPONSE_FAILED",function(c){Q_(a,c.errorInfo)}); return b}; Q_=function(a,b){a.B.reject(b);a.F.stop();a.u.tick("ore");a.xhr&&a.xhr.abort()}; $za=function(a){for(var b=a.xhr;b.sh();){var c=b.wt();a.da("handleAvailableSlices: slice length "+c.getLength());a.P.feed(c)}}; bAa=function(a){return Pe(a,function c(){var d=this,e,f;return xa(c,function(h){if(1==h.u)return ra(h,aAa(d),2);e=h.B;f={Sv:e};return h["return"](new Tza(f))})})}; aAa=function(a){return Pe(a,function c(){var d=this,e,f,h,l,m;return xa(c,function(n){if(1==n.u)return ra(n,cAa(d),2);if(3!=n.u)return e=n.B,f=d.C.u.encryptedClientKey,h=d.C.iv,ra(n,Eza(d.C,e),3);l=n.B;m={encryptedOnesiePlayerRequest:e,encryptedClientKey:f,iv:h,hmac:l};return n["return"](new Rza(m))})})}; cAa=function(a){return Pe(a,function c(){var d=this,e,f,h;return xa(c,function(l){switch(l.u){case 1:var m=d.D.fa;m="https://web.archive.org/web/20201214145215/https://youtubei.googleapis.com/youtubei/"+m.innertubeApiVersion+"/player?key="+m.innertubeApiKey;var n=[new O_({name:"Content-Type",value:"application/json"})],p=d.videoData.kf();p&&n.push(new O_({name:"Authorization",value:"Bearer "+p}));n.push(new O_({name:"User-Agent",value:g.Rc}));(p=d.videoData.visitorData||Xn("VISITOR_DATA"))&&n.push(new O_({name:"X-Goog-Visitor-Id",value:p})); (p=g.dA(d.D.experiments,"debug_sherlog_username"))&&n.push(new O_({name:"X-Youtube-Sherlog-Username",value:p}));p=JSON.stringify(d.playerRequest);e=new Sza({url:m,httpHeaders:n,postBody:p});l.C=2;return ra(l,d.C.encrypt(e.Am()),4);case 4:f=l.B;sa(l,3);break;case 2:return ua(l),h=new nA("onesie.request.encrypt",!1),l["return"](Promise.reject(h));case 3:return l["return"](f)}})})}; iAa=function(a,b,c,d,e,f){function h(m){return dAa(l,a)?eAa(a,e,f,c).then(function(){R_(a)},function(n){R_(a,!0); throw n;}):fAa(a,b,c,m)} a.ma();a.Fd=!0;var l=a.T();return g.Q(l.experiments,"html5_onesie")&&g.Q(l.experiments,"html5_onesie_player_config")&&"yt"===l.X?gAa(a).then(function(){return hAa(a,d,e,f)}).then(function(){R_(a)},function(m){m=pA(m); if(m.u)return R_(a,!0),Promise.reject(m);c(m);return h("onesie")}):h("gvi")}; dAa=function(a,b){return(a.aa("web_player_gvi_wexit")||("MWEB"===a.deviceParams.c?a.aa("web_player_gvi_wexit_mweb"):g.cD(a)?a.aa("web_player_gvi_wexit_living_room"):g.nD(a)?a.aa("web_player_gvi_wexit_web"):g.rD(a)?a.aa("web_player_gvi_wexit_embeds"):a.aa("web_player_gvi_wexit_other"))||g.Q(a.experiments,"hoffle_api")&&EH(b))&&"yt"===a.X&&"adunit"!==zH(b)?!0:!1}; gAa=function(a){a=a.T().Lf;if(!a||!a.u)return Promise.reject(new nA("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};by()||(a.fetch="0");window.Uint8Array||(a.uint8="0");return 0Math.random())try{g.Ur(new g.Gq("b/152131571",btoa(b)))}catch(B){}return y["return"](Promise.reject(new nA(x,!0,{backend:"gvi"})))}})})}; lAa=function(a,b){return Pe(this,function d(){var e,f,h,l,m,n,p,r,t,w,x,y,B,E;return xa(d,function(G){if(1==G.u)return a.fetchType="gvi",e=a.T(),(l=pua(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,oc:l},h=Gp(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b),m={},e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData),(n=g.dA(e.experiments,"debug_dapper_trace_id"))&&(m["X-Google-DapperTraceInfo"]=n),(p=g.dA(e.experiments, "debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=p),0n.u&&3!==n.provider.getVisibilityState()&&xya(n)}m.qoe&&(m=m.qoe,m.la&&0>m.B&&m.provider.u.Sc&&Fya(m));g.P(l.C.experiments,"html5_background_quality_cap")&&l.B&&T_(l);l.C.er&&!l.videoData.backgroundable&&l.u&&!l.visibility.B&&(l.isBackground()&&l.u.Bt()?(l.Ma("bgmobile","suspend"),l.Mh(!0)):l.isBackground()||U_(l)&&l.Ma("bgmobile", "resume"))}; this.da();c=g.P(this.C.experiments,"html5_min_has_advanced_secs_float");this.Ab=new dza(c);this.W=new hE(function(){return l.getCurrentTime()},function(){return l.getPlaybackRate()},function(){return l.getPlayerState()},function(m,n){m!==g.bE("endcr")||g.U(l.playerState,32)||oY(l); e(m,n,l.playerType)}); g.D(this,this.W);this.Va=new sZ;this.X=new EZ(a,this.gf);g.D(this,this.X);this.X.subscribe("ctmp",this.Ma,this);this.ca=new w_;this.ea=new w_;this.Mf=new g.F(this.cP,500,this);g.D(this,this.Mf);this.playerState=new g.CL;this.playerType=b;this.Xa=new Fs;g.D(this,this.Xa);this.videoData=new g.rG(a);oAa(this,function(){return{}}); pAa(this);this.Aa=new g.F(function(){var m,n;if(!l.videoData.Gg&&l.u&&!l.isBackground()){var p="0";0=t.C.values.length){var w="ns;";t.W||(w+="nr;");t=w+="ql."+t.D.length}else t=Gxa(t.C.values[0]);r.drmp=t}g.Sa(p,(null===(m=l.B)||void 0===m?void 0:m.qb())||{});g.Sa(p,(null===(n=l.u)||void 0===n?void 0:n.qb())||{})}l.F.onError("qoe.start15s",g.oA(p));l.V("loadsofttimeout")}},15E3); g.D(this,this.Aa);a=g.P(this.C.experiments,"html5_source_buffer_attach_delay_time")||15E3;this.Lf=new g.F(function(){g.U(l.playerState,128)||l.mediaSource&&wA(l.mediaSource)||(l.F.onError("qoe.restart",g.oA({detail:"bufferattach"})),l.bj++,jY(l))},a); g.D(this,this.Lf);this.Sd=new g.F(this.yy,4500,this);g.D(this,this.Sd);this.ka=new MY;g.D(this,this.ka);OY(this.ka,"bufferhealth",function(){var m=l.D;return m.u?CS(m.u):0}); OY(this.ka,"bandwidth",function(){return l.B?Pz(l.B.Y):Kz(l.C.schedule)}); OY(this.ka,"networkactivity",function(){return l.C.schedule.K}); OY(this.ka,"livelatency",function(){return rAa(l)}); OY(this.ka,"rawlivelatency",function(){return sAa(l)}); this.ka.start();swa(this.Ve);this.visibility.subscribe("visibilitystatechange",this.Ve);tAa(this);this.Hd=new g.F(function(){l.Xd("ad.rebuftimeout","RETRYABLE_ERROR","vps."+l.playerState.state.toString(16))}); g.D(this,this.Hd);this.Zi=new g.F(function(){g.KL(l.playerState)&&qya(l.X,l.N)&&T_(l)}); g.D(this,this.Zi);this.yd=new g.F(this.wF,3E4,this);g.D(this,this.yd)}; oAa=function(a,b){!a.F||a.F.ma();a.F=new c_(new bza(a.videoData,a.C,b,function(){return a.getDuration()},function(){return a.getCurrentTime()},function(){var c=new Gha; if(a.B){var d=a.C.schedule;c.B=d.K;c.D=d.X;c.bandwidthEstimate=Kz(d);c.u="d."+Iz(d).toFixed(2)+";st."+(1E9*(d.C.u()||0)).toFixed(2)+";bw."+d.u.u().toFixed(0)+";abw."+d.N.u().toFixed(0)+";v50."+Gz(d.D,.5).toFixed(2)+";v92."+Gz(d.D,.92).toFixed(2)+";v96."+Gz(d.D,.96).toFixed(2)+";v98."+Gz(d.D,.98).toFixed(2);d=a.B;if(d.C&&!yA(d.C)&&(c.ul=pz(d.B,d.I),c.C=pz(d.D,d.I),d.u.va)){var e=oz(d.B),f=oz(d.D),h=Ky(d.C.B.Je(),"_",5),l=Ky(d.C.u.Je(),"_",5);c.u=(c.u||"")+(";lvq."+e+";laq."+f+";lvb."+h+";lab."+l)}c.bandwidthEstimate= Pz(d.Y)}else a.u&&(c.ul=CS(a.u));c.F=rAa(a);return c},function(){return a.gf.getPlayerSize()},function(){return a.getAudioTrack()},function(){return a.getPlaybackRate()},function(){return a.u?a.u.getVideoPlaybackQuality():{}},a.getVisibilityState,function(){a.videoData.isLivePlayback||a.V("connectionissue")},function(){a.P.tick("qoes")},function(){return cY(a.D)}))}; pAa=function(a){!a.I||a.I.ma();a.I=new yZ(a.videoData,a.C,a.visibility);a.I.subscribe("newelementrequired",function(b){return jY(a,b)}); a.I.subscribe("qoeerror",a.pD,a);a.I.subscribe("playbackstalledatstart",function(){return a.V("playbackstalledatstart")}); a.I.subscribe("signatureexpiredreloadrequired",function(){return a.V("signatureexpired")}); a.I.subscribe("releaseloader",function(){X_(a)}); a.I.subscribe("pausevideo",function(){a.pauseVideo()}); a.I.subscribe("clienttemp",a.Ma,a);a.I.subscribe("highrepfallback",a.mN,a);a.I.subscribe("playererror",a.Xd,a);a.I.subscribe("removedrmplaybackmanager",function(){Y_(a)}); a.I.subscribe("formatupdaterequested",function(){Z_(a)}); a.I.subscribe("reattachvideosourcerequired",function(){uAa(a)})}; $_=function(a){var b=a.F;b.B&&b.B.send();if(b.qoe){var c=b.qoe;if(c.P){"PL"===c.Hc&&(c.Hc="N");var d=g.nY(c.provider);g.KZ(c,d,"vps",[c.Hc]);c.D||(0<=c.B&&(c.u.user_intent=[c.B.toString()]),c.D=!0);c.reportStats(d)}}if(b.provider.videoData.enableServerStitchedDai)for(c=g.q(b.D.values()),d=c.next();!d.done;d=c.next())Uya(d.value);else b.u&&Uya(b.u);b.dispose();g.Xf(a.F)}; MI=function(a){return a.u&&a.u.Mk()?a.u.Na():null}; a0=function(a){if(a.videoData.isValid())return!0;a.Xd("api.invalidparam",void 0,"invalidVideodata.1");return!1}; gT=function(a,b){a.Ca=void 0===b?!1:b;if(!a0(a)||a.ca.started)g.cD(a.C)&&a.videoData.isLivePlayback&&a.ca.started&&!a.ca.isFinished()&&!a.Ca&&a.Gv();else{a.ca.start();var c=a.F;g.nY(c.provider);c.qoe&&Dya(c.qoe);a.Gv()}}; vAa=function(a){var b=a.videoData,c=a.gf.getPlayerSize(),d=a.getVisibilityState(),e=oua(a.C,a.videoData,c,d,a.isFullscreen());nAa(a.videoData,e,function(f){a.handleError(f)},a.P,c,d).then(void 0,function(f){a.videoData!==b||b.ma()||(f=pA(f),"auth"===f.errorCode&&a.videoData.errorDetail?a.Xd("auth",unescape(a.videoData.errorReason),g.oA(f.details),a.videoData.errorDetail,a.videoData.ji||void 0):a.handleError(f))})}; wwa=function(a,b){a.Ib=b;a.B&&(a.B.Xa=new OE(b))}; yAa=function(a){if(!g.U(a.playerState,128))if(a.videoData.Lc(),a.De=!0,a.da(),4!==a.playerType&&(a.Y=g.rb(a.videoData.Hf)),pH(a.videoData)){b0(a).then(function(){a.ma()||(a.Ca&&U_(a),wAa(a,a.videoData),a.ca.u=!0,c0(a,"dataloaded"),a.ea.started?d0(a):a.Ca&&a.sb(EL(EL(a.playerState,512),1)),wya(a.X,a.N))}); a.Ma("loudness",""+a.videoData.gq.toFixed(3),!0);var b=Mma(a.videoData);b&&a.Ma("playerResponseExperiment",b,!0);xAa(a)}else c0(a,"dataloaded")}; b0=function(a){X_(a);a.N=null;var b=fza(a.C,a.videoData,a.visibility.B);a.Qa=b;a.Qa.then(function(c){zAa(a,c)},function(c){a.ma()||(c=pA(c),a.visibility.isBackground()?(e0(a,"vp_none_avail"),a.Qa=null,a.ca.reset()):(a.ca.u=!0,a.Xd(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.oA(c.details))))}); return b}; Z_=function(a){a.da();b0(a).then(function(){return U_(a)}); g.IL(a.playerState)&&a.playVideo()}; zAa=function(a,b){if(!a.ma()&&!b.videoData.ma()&&(a.da(),a.N=b,oza(a.D,a.N),!a.videoData.isLivePlayback||0g.P(a.C.experiments,"hoffle_max_video_duration_secs")||0!==a.videoData.startSeconds||!a.videoData.offlineable||!a.videoData.na||a.videoData.na.isOtf||a.videoData.na.isLive||a.videoData.na.Df||Rw(a.videoData.videoId)||(g.Q(a.C.experiments,"hoffle_cfl_lock_format")?(a.Ma("dlac","cfl"),a.videoData.AC=!0):(fH(a.videoData,!0),a.videoData.Ap=new nE(a.videoData.videoId,2, {Mn:!0,Is:!0,videoDuration:a.videoData.lengthSeconds}),a.Ma("dlac","w")))}; h0=function(a){a.da();a.u&&a.u.xn();gT(a);a0(a)&&!g.U(a.playerState,128)&&(a.ea.started||(a.ea.start(),a.sb(EL(EL(a.playerState,8),1))),d0(a))}; d0=function(a){a.ma();a.da();if(a.ea.isFinished())a.da();else if(a.ca.isFinished())if(g.U(a.playerState,128))a.da();else if(a.Y.length)a.da();else{if(!a.W.started){var b=a.W;b.started=!0;b.Bh()}if(bZ(a))a.da();else{a.B&&(b=a.B.va,a.dg=!!b.u&&!!b.D);a.ea.isFinished()||(a.ea.u=!0);!a.videoData.isLivePlayback||0b.startSeconds){var c=b.endSeconds;a.fa&&(a.removeCueRange(a.fa),a.fa=null);a.fa=new g.ZD(1E3*c,0x7ffffffffffff);a.fa.namespace="endcr";a.addCueRange(a.fa)}}; j0=function(a,b,c,d){a.videoData.La=c;d&&CAa(a,b,d);var e=(d=g.i0(a))?d.Tb():"";d=a.F;c=new hya(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.nY(d.provider);g.KZ(d,e,"vfs",[c.u.id,c.B,d.Va,c.reason]);d.Va=c.u.id;var f=d.provider.N();if(0=a.start);return b}; gY=function(a,b){a.da();if(a.u&&b.Na()===a.u.Na()&&(b.isView()||a.u.isView())){if(b.isView()||!a.u.isView())g.Hs(a.Xa),a.u=b,DAa(a),s_(a.D,a.u),a.I.B=a.u}else{a.u&&fY(a);if(!a.playerState.isError()){var c=FL(a.playerState,512);g.U(c,8)&&!g.U(c,2)&&(c=EL(c,1));b.isView()&&(c=FL(c,64));a.sb(c)}a.u=b;a.u.setLoop(a.loop);a.u.setPlaybackRate(a.playbackRate);DAa(a);s_(a.D,a.u);a.I.B=a.u}}; fY=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;a.da();if(a.u){var d=a.getCurrentTime();0m?new jC(0,l,!1,"e"):AD;m=g.P(b.u.experiments,"html5_background_quality_cap");var n=g.P(b.u.experiments,"html5_background_cap_idle_secs");e=!m||"auto"!==lya(b)||fp()/1E31E3*r);p&&(m=m?Math.min(m,n):n)}n=g.P(b.u.experiments,"html5_random_playback_cap");r=/[a-h]$/;n&&r.test(c.videoData.clientPlaybackNonce)&&(m=m?Math.min(m,n):n);(n=g.P(b.u.experiments, "html5_not_vp9_supported_quality_cap"))&&!hA('video/webm; codecs="vp9"')&&(m=m?Math.min(m,n):n);if(r=n=g.P(b.u.experiments,"html5_hfr_quality_cap"))a:{r=c.Ja;if(r.Dc())for(r=g.q(r.videoInfos),p=r.next();!p.done;p=r.next())if(32d&&0!==d&&b.u===d)){FAa(nC(b));if(c.aa("html5_exponential_memory_for_sticky")){e=c.u.lc;d=1;var f=void 0===f?!1:f;BC(e,"sticky-lifetime");e.values["sticky-lifetime"]&&e.tj["sticky-lifetime"]||(e.values["sticky-lifetime"]=0,e.tj["sticky-lifetime"]=0);f&&.0625b.u;e=a.K.Aa&&!rA();c||d||b||e?(a.Rc("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"),a.V("reattachrequired")): GE(a)}}}; T_=function(a){a.aa("html5_nonblocking_media_capabilities")?o0(a):g0(a)}; BAa=function(a){a.aa("html5_probe_media_capabilities")&&iya(a.videoData.Ja);Sga(a.videoData.na,{cpn:a.videoData.clientPlaybackNonce,c:a.C.deviceParams.c,cver:a.C.deviceParams.cver});var b=a.C,c=a.videoData,d=new g.Yv,e=Xv(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,ti:c.ti});d.D=e;d.mr=b.aa("html5_disable_codec_for_playback_on_error");d.dr=b.aa("html5_max_drift_per_track_secs")||b.aa("html5_rewrite_manifestless_for_sync")||b.aa("html5_check_segnum_discontinuity");d.Hm=b.aa("html5_unify_sqless_flow"); d.Ub=b.aa("html5_unrewrite_timestamps");d.Ab=b.aa("html5_stop_overlapping_requests");d.me=g.P(b.experiments,"html5_min_readbehind_secs");d.qz=g.P(b.experiments,"html5_min_readbehind_cap_secs");d.OG=g.P(b.experiments,"html5_max_readbehind_secs");d.aB=g.Q(b.experiments,"html5_trim_future_discontiguous_ranges");d.Wq=b.aa("html5_append_init_while_paused");d.Fe=g.P(b.experiments,"html5_max_readahead_bandwidth_cap");d.Mf=g.P(b.experiments,"html5_post_interrupt_readahead");d.N=g.P(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); d.Sb=g.P(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Sz=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Ib=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.Tz=g.P(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Gm=g.P(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Xz=g.P(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Kf=b.aa("html5_peak_shave");d.xz=b.aa("html5_peak_shave_always_include_sd"); d.Jz=b.aa("html5_restrict_streaming_xhr_on_sqless_requests");d.DG=g.P(b.experiments,"html5_max_headm_for_streaming_xhr");d.yz=b.aa("html5_pipeline_manifestless_allow_nonstreaming");d.Cz=b.aa("html5_prefer_server_bwe3");d.Jm=1024*g.P(b.experiments,"html5_video_tbd_min_kb");d.cg=b.aa("html5_probe_live_using_range");d.oF=b.aa("html5_last_slice_transition");d.Qz=b.aa("html5_store_xhr_headers_readable");d.Fs=b.aa("html5_enable_packet_train_response_rate");if(e=g.P(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.dg= e,d.QA=1;d.Jd=g.P(b.experiments,"html5_probe_primary_delay_base_ms")||d.Jd;d.hf=b.aa("html5_no_placeholder_rollbacks");d.Rz=b.aa("html5_subsegment_readahead_enable_mffa");b.aa("html5_allow_video_keyframe_without_audio")&&(d.ea=!0);d.Xi=b.aa("html5_reattach_on_stuck");d.wC=b.aa("html5_webm_init_skipping");d.Zi=g.P(b.experiments,"html5_request_size_padding_secs")||d.Zi;d.sz=b.aa("html5_log_timestamp_offset");d.fc=b.aa("html5_abs_buffer_health");d.jF=b.aa("html5_interruption_resets_seeked_time");d.Ee= g.P(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Ee;d.Zc=b.aa("html5_explicitly_dispose_xhr");d.Pz=b.aa("html5_skip_invalid_sq");d.Iz=b.aa("html5_restart_on_unexpected_detach");d.gG=b.aa("html5_log_live_discontinuity");d.Lz=b.aa("html5_rewrite_manifestless_for_continuity");d.Sd=g.P(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.De=g.P(b.experiments,"html5_max_drift_per_track_secs");d.Nz=b.aa("html5_rewrite_manifestless_for_sync");d.jb=g.P(b.experiments,"html5_static_abr_resolution_shelf"); d.Zq=!b.aa("html5_encourage_array_coalescing");d.gr=b.aa("html5_crypto_period_secs_from_emsg");d.Gr=b.aa("html5_disable_reset_on_append_error");d.Pt=b.aa("html5_filter_non_efficient_formats_for_safari");d.rz=b.aa("html5_format_hybridization");d.wo=b.aa("html5_abort_before_separate_init");b.aa("html5_media_common_config_killswitch")||(d.F=c.maxReadAheadMediaTimeMs/1E3||d.F,e=b.schedule,e.u.u()===e.policy.C?d.P=10:d.P=c.minReadAheadMediaTimeMs/1E3||d.P,d.Sc=c.readAheadGrowthRateMs/1E3||d.Sc);ng&&(d.W= 41943040);d.ka=!zA();g.cD(b)||!zA()?(e=b.experiments,d.I=8388608,d.K=524288,d.Yq=5,d.Ca=2097152,d.X=1048576,d.Gz=1.5,d.vz=!1,d.wb=4587520,fr()&&(d.wb=786432),d.u*=1.1,d.B*=1.1,d.Va=!0,d.W=d.I,d.Aa=d.K,d.Lf=g.Q(e,"persist_disable_player_preload_on_tv")||g.Q(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.u&&(d.u*=1.3,d.B*=1.3);g.iA&&ar("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.I=20971520,d.K=1572864,e&&(d.wb=812500,d.Yi=1E3,d.qC=5,d.X=2097152));!b.aa("html5_disable_firefox_init_skipping")&& g.aC&&(d.Va=!0);b.supportsGaplessAudio()||(d.Xr=!1);MC&&(d.Tk=!0);jr()&&(d.bj=!0);var f,h,l;if($G(c)){d.Qt=!0;d.Oz=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.aa("html5_disable_low_pipeline"))d.xG=2,d.FG=4;d.nj=c.defraggedFromSubfragments;c.Qc&&(d.Qa=!0);g.tH(c)&&(d.fa=!1);d.er=g.pD(b)}c.isAd()&&(d.Pa=0,d.yd=0);bH(c)&&(d.ca=!0,b.aa("html5_resume_streaming_requests")&&(d.Xa=!0,d.Yi=400,d.AG=2));d.la=b.aa("html5_enable_subsegment_readahead_v3")||b.aa("html5_ultra_low_latency_subsegment_readahead")&& "ULTRALOW"===c.latencyClass;d.va=c.Rj;d.AF=d.va&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||CG(c));pr()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.aa("html5_disable_move_pssh_to_moov")&&(null===(f=c.na)||void 0===f?0:EA(f))&&(d.Va=!1);if(null===(h=c.na)||void 0===h?0:EA(h))d.Xi=!1;h=0;b.aa("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,c.isLivePlayback&&(h=g.P(b.experiments,"ULTRALOW"===c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream? "html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||h));f=b.schedule;f.P.u=$G(c)?.5:0;if(!f.policy.B&&h&&(f=f.u,h=Math.round(h*f.resolution),h!==f.B)){e=Array(h);var m=Math.min(h,f.D?f.B:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.B);for(var p=0;pa.videoData.endSeconds&&isFinite(b)&&(a.removeCueRange(a.fa),a.fa=null);ba.mediaSource.getDuration()&&vA(a.mediaSource,c)):vA(a.mediaSource,d);var e=a.B,f=a.mediaSource;e.fa&&(uE(e),e.fa=!1);tE(e);if(!wA(f)){var h=e.B.u.info.mimeType+e.u.Ms,l=e.D.u.info.mimeType,m,n,p=null===(m=f.mediaSource)||void 0=== m?void 0:m.addSourceBuffer(l),r="fakesb"===h?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.Rd&&(f.Rd.webkitSourceAddId("0",l),f.Rd.webkitSourceAddId("1",h));var t=new qA(p,f.Rd,"0",rw(l),!1),w=new qA(r,f.Rd,"1",rw(h),!0);f.u=t;f.B=w;g.D(f,t);g.D(f,w)}Sy(e.B,f.B);Sy(e.D,f.u);e.C=f;e.resume();Is(f.u,e.Va,e);Is(f.B,e.Va,e);e.u.sz&&1E-4>=Math.random()&&e.Rc("toff",""+f.u.supports(1),!0);e.Dh();a.V("mediasourceattached");a.Lf.stop()}}catch(x){g.Ur(x),a.handleError(new nA("fmt.unplayable", !0,{msi:"1",ename:x.name}))}})}; KAa=function(a){a.B?pm(a.B.seek(a.getCurrentTime()-a.tc()),function(){}):BAa(a)}; jY=function(a,b){b=void 0===b?!1:b;return Pe(a,function d(){var e=this;return xa(d,function(f){if(1==f.u)return e.B&&e.B.ma()&&X_(e),e.V("newelementrequired"),b?f=ra(f,b0(e),2):(f.u=2,f=void 0),f;g.U(e.playerState,8)&&e.playVideo();f.u=0})})}; pwa=function(a,b){a.Ma("newelem",b);jY(a)}; p0=function(a){g.U(a.playerState,32)||(a.sb(EL(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.V("beginseeking",a));a.kc()}; xY=function(a){g.U(a.playerState,32)?(a.sb(GL(a.playerState,16,32)),a.V("endseeking",a)):g.U(a.playerState,2)||a.sb(EL(a.playerState,16))}; FY=function(a){a=a.D;return a.B?j_(a.B):Infinity}; c0=function(a,b){a.V("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)}; DAa=function(a){g.Cb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Xa.R(this.u,b,this.EL,this)},a); a.C.bj&&a.u.Mk()&&(a.Xa.R(a.u,"webkitplaybacktargetavailabilitychanged",a.sM,a),a.Xa.R(a.u,"webkitcurrentplaybacktargetiswirelesschanged",a.tM,a))}; MAa=function(a){a.aa("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&LAa(a)&&a.Mf.start()}; LAa=function(a){if(!a.u)return!1;var b=a.u.getCurrentTime();a=a.u.getDuration();return!!(1a-.3)}; NAa=function(a){window.clearInterval(a.lc);r0(a)||(a.lc=lo(function(){return r0(a)},100))}; r0=function(a){var b=a.u;b&&a.Sb&&!a.videoData.Gg&&!HB("vfp",a.P.timerName)&&2<=b.rg()&&!b.zi()&&0b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c}a.Sd.Lb();a.V("playbackstarted");g.Zo()&&((a=g.Ja("yt.scheduler.instance.clearPriorityThreshold"))?a():ap(0))}; sta=function(a){var b=a.getCurrentTime(),c=a.videoData;!HB("pbs",a.P.timerName)&&IB.measure&&IB.getEntriesByName&&(IB.getEntriesByName("mark_nr")[0]?JB("mark_nr"):JB());c.videoId&&a.P.info("docid",c.videoId);c.eventId&&a.P.info("ei",c.eventId);c.clientPlaybackNonce&&a.P.info("cpn",c.clientPlaybackNonce);0a.Xi+6283){if(!(!a.isAtLiveHead()||a.videoData.na&&QA(a.videoData.na))){var b=a.F;if(b.qoe){b=b.qoe;var c=b.provider.D(),d=g.nY(b.provider);Cya(b,d,c);c=c.F;isNaN(c)||g.KZ(b,d,"e2el",[c.toFixed(3)])}}g.pD(a.C)&&a.Ma("rawlat","l."+QY(a.ka,"rawlivelatency").toFixed(3));a.Xi=g.A()}a.videoData.La&&zw(a.videoData.La)&&(b=MI(a))&&b.videoHeight!==a.Fe&&(a.Fe=b.videoHeight,j0(a,"a",HAa(a,a.videoData.Pg)))}; HAa=function(a,b){if("auto"===b.La.Ka().quality&&zw(b.Ke())&&a.videoData.Pj)for(var c=g.q(a.videoData.Pj),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.Fe&&"auto"!==d.La.Ka().quality)return d.Ke();return b.Ke()}; rAa=function(a){return a.isAtLiveHead()&&a.Jb()?sAa(a):NaN}; sAa=function(a){if(!a.videoData.isLivePlayback||!a.videoData.na||!a.B)return NaN;var b=$G(a.videoData)?a.B.Qa.u()||0:a.videoData.na.N;return g.A()/1E3-a.Le()-b}; PAa=function(a){!a.aa("html5_ignore_airplay_events_on_new_video_killswitch")&&a.u&&a.u.dm()&&(a.fc=(0,g.N)());a.C.Ms?g.ko(function(){s0(a)},0):s0(a)}; s0=function(a){a.u&&(a.Ub=a.u.playVideo());if(a.Ub){var b=a.Ub;b.then(void 0,function(c){a.da();if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.Ub===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.da();else{var d="promise";c&&c.name&&(d+=";m."+c.name);try{a.sb(EL(a.playerState,2048))}catch(e){}e0(a,d);a.cg=!0}})}}; e0=function(a,b){g.U(a.playerState,128)||(a.sb(GL(a.playerState,1028,9)),a.Ma("dompaused",b),a.V("onDompaused"))}; U_=function(a){if(!a.u||!a.videoData.Ja)return!1;var b,c,d=null;(null===(c=a.videoData.Ja)||void 0===c?0:c.Dc())?(d=q0(a),null===(b=a.B)||void 0===b?void 0:b.resume()):(X_(a),a.videoData.Pg&&(d=a.videoData.Pg.Hp()));b=d;d=a.u.Bt();c=!1;d&&null!==b&&b.u===d.u||(a.P.tick("vta"),KB("vta","video_to_ad"),0=c&&b<=d}; dBa=function(a,b){var c=a.B.getAvailablePlaybackRates();b=Number(b.toFixed(2));var d=c[0];c=c[c.length-1];b<=d||(b>=c?d=c:(d=Math.floor(100*b+.001)%5,d=0===d?b:Math.floor(100*(b-.01*d)+.001)/100));return d}; S0=function(a,b,c){if(a.Qc(c)){c=c.getVideoData();if(a.P)c=b;else{a=a.ka;for(var d=g.q(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Ac===e.Ac){b+=e.hc/1E3;break}d=b;a=g.q(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Ac===e.Ac)break;var f=e.hc/1E3;if(fe?f=!0:1>16,a>>8&255,a&255]}; QBa=function(){if(!g.re)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}}; g.f1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;ig();a=$c(a,null);return b.parseFromString(g.Zc(a),"application/xml")}if(RBa){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}; g.g1=function(a){g.C.call(this);this.B=a;this.u={}}; SBa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h=f}}); ha("Array.prototype.find",function(a){return a?a:function(b,c){return za(this,b,c).wG}}); ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=ya(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,h=Math.max(0,Math.min(c|0,d.length)),l=0;l=f}}); ha("String.prototype.repeat",function(a){return a?a:function(b){var c=ya(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); ha("Object.setPrototypeOf",function(a){return a||na}); var XBa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cf&&(f=Math.max(f+e,0));fb?-c:c}}); ha("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);cc?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(cd;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); ha("Int8Array.prototype.copyWithin",Ea);ha("Uint8Array.prototype.copyWithin",Ea);ha("Uint8ClampedArray.prototype.copyWithin",Ea);ha("Int16Array.prototype.copyWithin",Ea);ha("Uint16Array.prototype.copyWithin",Ea);ha("Int32Array.prototype.copyWithin",Ea);ha("Uint32Array.prototype.copyWithin",Ea);ha("Float32Array.prototype.copyWithin",Ea);ha("Float64Array.prototype.copyWithin",Ea);g.l1=g.l1||{};g.v=this||self;eaa=/^[\w+/_-]+[=]{0,2}$/;Ha=null;Pa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Ta(Va,Error);Va.prototype.name="CustomError";var he;g.Ta(Wa,Va);Wa.prototype.name="AssertionError";var gb,bi;gb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0); for(var c=0;cc&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; g.Cb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f/g,rc=/"/g,sc=/'/g,tc=/\x00/g,waa=/[\x00&<>"']/;g.Bc.prototype.xj=!0;g.Bc.prototype.Ig=function(){return this.C.toString()}; g.Bc.prototype.B=!0;g.Bc.prototype.u=function(){return 1}; var yaa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,xaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Ec=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ac={},Fc=new g.Bc("about:invalid#zClosurez",Ac);Jc.prototype.xj=!0;Jc.prototype.Ig=function(){return this.u}; var Ic={},Nc=new Jc("",Ic),Aaa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Qc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Pc=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),Baa=/\/\*/;a:{var bCa=g.v.navigator;if(bCa){var cCa=bCa.userAgent;if(cCa){g.Rc=cCa;break a}}g.Rc=""};Yc.prototype.B=!0;Yc.prototype.u=function(){return this.D}; Yc.prototype.xj=!0;Yc.prototype.Ig=function(){return this.C.toString()}; var dCa=/^[a-zA-Z0-9-]+$/,eCa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},fCa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Wc={},bd=new Yc(g.v.trustedTypes&&g.v.trustedTypes.emptyHTML||"",0,Wc);var Iaa=$a(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.Zc(bd);return!b.parentElement});g.gCa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var rd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Hd=/#|$/,Kaa=/[?&]($|#)/;Pd[" "]=g.Ka;var ng,MD,GBa,hCa,iCa,jCa,LC,MC,m1;g.og=Sc("Opera");g.re=Sc("Trident")||Sc("MSIE");g.ur=Sc("Edge");g.uD=g.ur||g.re;ng=Sc("Gecko")&&!(wc(g.Rc,"WebKit")&&!Sc("Edge"))&&!(Sc("Trident")||Sc("MSIE"))&&!Sc("Edge");g.ve=wc(g.Rc,"WebKit")&&!Sc("Edge");MD=Sc("Macintosh");GBa=Sc("Windows");g.nr=Sc("Android");hCa=Nd();iCa=Sc("iPad");jCa=Sc("iPod");LC=Od();MC=wc(g.Rc,"KaiOS"); a:{var n1="",o1=function(){var a=g.Rc;if(ng)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.ur)return/Edge\/([\d\.]+)/.exec(a);if(g.re)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.ve)return/WebKit\/(\S+)/.exec(a);if(g.og)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); o1&&(n1=o1?o1[1]:"");if(g.re){var p1=Sd();if(null!=p1&&p1>parseFloat(n1)){m1=String(p1);break a}}m1=n1}var Td=m1,Maa={},q1;if(g.v.document&&g.re){var kCa=Sd();q1=kCa?kCa:parseInt(Td,10)||void 0}else q1=void 0;var Naa=q1;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Oaa=!g.re||g.Vd(9),Paa=!ng&&!g.re||g.re&&g.Vd(9)||ng&&g.Ud("1.9.1");g.re&&g.Ud("9");var Raa=g.re||g.og||g.ve;g.k=g.ae.prototype;g.k.clone=function(){return new g.ae(this.x,this.y)}; g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.ce.prototype;g.k.clone=function(){return new g.ce(this.width,this.height)}; g.k.aspectRatio=function(){return this.width/this.height}; g.k.isEmpty=function(){return!ee(this)}; g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};var ne={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=fe.prototype;g.k.Na=function(a){return je(this.u,a)}; g.k.getElementsByTagName=function(a,b){return(b||this.u).getElementsByTagName(String(a))}; g.k.ha=function(a){return g.me(a,this.u)}; g.k.createElement=function(a){return xe(this.u,a)}; g.k.appendChild=function(a,b){a.appendChild(b)}; g.k.append=function(a,b){ye(ge(a),a,arguments,1)}; g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.k.removeNode=g.Ee;g.k.contains=g.He;g.sf=0;g.tf=0;Te.prototype.clone=function(){return Ve(this.B,this.D,this.C-this.D)}; Te.prototype.clear=function(){this.B=null;this.u=this.C=this.D=0;this.F=!1}; Te.prototype.reset=function(){this.u=this.D}; Te.prototype.advance=function(a){this.u+=a}; var Ue=[];Ze.prototype.reset=function(){this.u.reset();this.B=this.C=-1}; Ze.prototype.advance=function(a){this.u.advance(a)};df.prototype.length=function(){return this.u.length}; df.prototype.end=function(){var a=this.u;this.u=[];return a};var VC,HH;g.aC=Tc();VC=Nd()||Sc("iPod");HH=Sc("iPad");g.NC=Sc("Android")&&!(Uc()||Tc()||Sc("Opera")||Sc("Silk"));g.iA=Uc();g.bC=Vc()&&!Od();var hf={},mf=null;g.pf.prototype.reset=function(){this.C=[];this.u.end();this.B=0};var xf="function"==typeof Uint8Array,yf=[];g.wf.prototype.toString=function(){return this.Ff.toString()}; g.wf.prototype.clone=function(){return new this.constructor(Hf(this.Ff))};var vi;vi=["av.key","js","unreleased"].slice(-1)[0];var Fg=document,Wg=window;var Jf={};g.k=Lf.prototype;g.k.isEnabled=function(){return navigator.cookieEnabled}; g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.z3;d=c.dQ||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.CC}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);this.u.cookie=a+"="+b+(f?";domain="+f:"")+(h?";path="+h:"")+(0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")}; g.k.get=function(a,b){for(var c=a+"=",d=(this.u.cookie||"").split(";"),e=0,f;e=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.k.scale=function(a,b){var c="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};g.k=g.ag.prototype;g.k.clone=function(){return new g.ag(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.ae?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(a,b){var c="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var cg={};var r1;g.u(fg,dba);fg.prototype.toString=function(){return this.u.toString()}; var s1=null===(r1=eg())||void 0===r1?void 0:r1.emptyHTML;new fg(null!==s1&&void 0!==s1?s1:"",cg);var t1;g.u(gg,eba);gg.prototype.toString=function(){return this.u.toString()}; var u1=null===(t1=eg())||void 0===t1?void 0:t1.emptyScript;new gg(null!==u1&&void 0!==u1?u1:"",cg);g.u(hg,fba);hg.prototype.toString=function(){return this.u};new hg("about:blank",cg);new hg("about:invalid#zTSz",cg);var ig=g.Ka;var mg={};var Dg=!!window.google_async_iframe_id,Eg=Dg&&window.parent||window;var Qba={NONE:0,HU:1};Jg.prototype.isVisible=function(){return this.Tl?.3<=this.sc:.5<=this.sc};var qh={FS:0,VU:1},ph={NONE:0,aW:1,rV:2};Kg.prototype.getValue=function(){return this.B}; g.u(Lg,Kg);Lg.prototype.setValue=function(a){if(null!==this.B||!g.Pb(this.C,a))return!1;this.B=a;return!0}; g.u(Mg,Kg);Mg.prototype.setValue=function(a){if(null!==this.B||"number"!==typeof a)return!1;this.B=a;return!0}; g.u(Ng,Kg);Ng.prototype.setValue=function(a){if(null!==this.B||"string"!==typeof a)return!1;this.B=a;return!0};Og.prototype.disable=function(){this.B=!1}; Og.prototype.enable=function(){this.B=!0}; Og.prototype.isEnabled=function(){return this.B}; Og.prototype.reset=function(){this.u={};this.B=!0;this.C={}};var Rba=!g.re&&!Vc();Tg.prototype.now=function(){return 0}; Tg.prototype.B=function(){return 0}; Tg.prototype.C=function(){return 0}; Tg.prototype.u=function(){return 0};g.u(Vg,Tg);Vg.prototype.now=function(){return Ug()&&Wg.performance.now?Wg.performance.now():Tg.prototype.now.call(this)}; Vg.prototype.B=function(){return Ug()&&Wg.performance.memory?Wg.performance.memory.totalJSHeapSize||0:Tg.prototype.B.call(this)}; Vg.prototype.C=function(){return Ug()&&Wg.performance.memory?Wg.performance.memory.usedJSHeapSize||0:Tg.prototype.C.call(this)}; Vg.prototype.u=function(){return Ug()&&Wg.performance.memory?Wg.performance.memory.jsHeapSizeLimit||0:Tg.prototype.u.call(this)};Yg.prototype.isVisible=function(){return 1===Xg(Fg)};var mba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;bh.prototype.Bd=function(a,b,c,d){a=a+"//"+b+c;var e=oba(this)-c.length-d.length;if(0>e)return"";this.u.sort(function(p,r){return p-r}); c=null;b="";for(var f=0;f=n.length){e-=n.length;a+=n;b=this.C;break}c=null==c?h:c}}e="";null!=c&&(e=b+"trn="+c);return a+e+d};ih.prototype.setInterval=function(a,b){return Wg.setInterval(a,b)}; ih.prototype.clearInterval=function(a){Wg.clearInterval(a)}; ih.prototype.setTimeout=function(a,b){return Wg.setTimeout(a,b)}; ih.prototype.clearTimeout=function(a){Wg.clearTimeout(a)}; La(ih);mh.prototype.getContext=function(){if(!this.u){if(!Wg)throw Error("Context has not been set and window is undefined.");this.u=ih.getInstance()}return this.u}; La(mh);g.Ta(nh,g.wf);var wba={F_:1,pH:2,eZ:3};jc(ec(g.fc("https://web.archive.org/web/20201214145215/https://pagead2.googlesyndication.com/pagead/osd.js")));rh.prototype.dy=function(a){if("string"===typeof a&&0!=a.length){var b=this.ub;if(b.B){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1=this.K?a:this;b!==this.u?(this.F=this.u.F,ii(this)):this.F!==this.u.F&&(this.F=this.u.F,ii(this))}; g.k.Ak=function(a){if(a.B===this.u){var b;if(!(b=this.ka)){b=this.C;var c=this.N;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.u,c=a.u,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;b=!c}this.C=a;b&&ni(this)}}; g.k.Ri=function(){return this.N}; g.k.dispose=function(){this.ca=!0}; g.k.ma=function(){return this.ca};g.k=oi.prototype;g.k.wx=function(){return!0}; g.k.Gp=function(){}; g.k.dispose=function(){if(!this.ma()){var a=this.B;g.ob(a.D,this);a.N&&this.Ri()&&mi(a);this.Gp();this.X=!0}}; g.k.ma=function(){return this.X}; g.k.nk=function(){return this.B.nk()}; g.k.ni=function(){return this.B.ni()}; g.k.bn=function(){return this.B.bn()}; g.k.pp=function(){return this.B.pp()}; g.k.fn=function(){}; g.k.Ak=function(){this.ek()}; g.k.Ri=function(){return this.Y};g.k=pi.prototype;g.k.ni=function(){return this.u.ni()}; g.k.bn=function(){return this.u.bn()}; g.k.pp=function(){return this.u.pp()}; g.k.create=function(a,b,c){var d=null;this.u&&(d=this.qt(a,b,c),ki(this.u,d));return d}; g.k.IC=function(){return this.Dp()}; g.k.Dp=function(){return!1}; g.k.init=function(a){return this.u.initialize()?(ki(this.u,this),this.D=a,!0):!1}; g.k.fn=function(a){0==a.ni()&&this.D(a.bn(),this)}; g.k.Ak=function(){}; g.k.Ri=function(){return!1}; g.k.dispose=function(){this.F=!0}; g.k.ma=function(){return this.F}; g.k.nk=function(){return{}};si.prototype.add=function(a,b,c){++this.C;var d=this.C/4096,e=this.u,f=e.push;a=new qi(a,b,c);d=new qi(a.B,a.u,a.C+d);f.call(e,d);this.B=!0;return this};wi.prototype.toString=function(){var a="//web.archive.org/web/20201214145215/https://pagead2.googlesyndication.com//pagead/gen_204",b=ui(this.u);0=h;h=!(0=h)||c;this.u[e].update(f&&l,d,!f||h)}};Pi.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.sc):b.sc;this.X=Math.max(this.X,b.sc);this.Y=-1!=this.Y?Math.min(this.Y,b.Yf):b.Yf;this.fa=Math.max(this.fa,b.Yf);this.Pa.update(b.Yf,c.Yf,b.u,a,d);this.B.update(b.sc,c.sc,b.u,a,d);c=d||c.Tl!=b.Tl?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.u;this.la.update(c,a,b)}; Pi.prototype.Vl=function(){return this.la.C>=this.Aa};var nCa=new Zf(0,0,0,0);var Pba=new Zf(0,0,0,0);g.u(Ti,g.C);g.k=Ti.prototype;g.k.ba=function(){this.Of.u&&(this.Al.Mx&&(Qf(this.Of.u,"mouseover",this.Al.Mx),this.Al.Mx=null),this.Al.Kx&&(Qf(this.Of.u,"mouseout",this.Al.Kx),this.Al.Kx=null));this.zq&&this.zq.dispose();this.xc&&this.xc.dispose();delete this.jt;delete this.qx;delete this.jG;delete this.Of.Ik;delete this.Of.u;delete this.Al;delete this.zq;delete this.xc;delete this.ub;g.C.prototype.ba.call(this)}; g.k.rk=function(){return this.xc?this.xc.u:this.position}; g.k.dy=function(a){rh.getInstance().dy(a)}; g.k.Ri=function(){return!1}; g.k.ls=function(){return new Pi}; g.k.Qf=function(){return this.jt}; g.k.wB=function(a){return Wi(this,a,1E4)}; g.k.oa=function(a,b,c,d,e,f,h){this.nn||(this.Hr&&(a=this.vv(a,c,e,h),d=d&&this.ze.sc>=(this.Tl()?.3:.5),this.hz(f,a,d),this.lastUpdateTime=b,0=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0=a.bottom||a.left>=a.right?new Zf(0,0,0,0):a;a=this.B.C;b=e=d=0;0<(this.u.bottom-this.u.top)*(this.u.right-this.u.left)&&(this.hC(c)?c=new Zf(0,0,0,0):(d=ci.getInstance().D,b=new Zf(0,d.height,d.width,0),d=Si(c,this.u),e=Si(c,ci.getInstance().u), b=Si(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Zf(0,0,0,0):$f(c,-this.u.left,-this.u.top);fi()||(e=d=0);this.K=new Uh(a,this.element,this.u,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.B.getName()};var oCa=new Zf(0,0,0,0);g.u(kj,jj);g.k=kj.prototype;g.k.wx=function(){this.C();return!0}; g.k.Ak=function(){jj.prototype.ek.call(this)}; g.k.oA=function(){}; g.k.yv=function(){}; g.k.ek=function(){this.C();jj.prototype.ek.call(this)}; g.k.fn=function(a){a=a.isActive();a!==this.I&&(a?this.C():(ci.getInstance().u=new Zf(0,0,0,0),this.u=new Zf(0,0,0,0),this.D=new Zf(0,0,0,0),this.timestamp=-1));this.I=a};var w1={},fca=(w1.firstquartile=0,w1.midpoint=1,w1.thirdquartile=2,w1.complete=3,w1);g.u(mj,Ti);g.k=mj.prototype;g.k.Ri=function(){return!0}; g.k.wB=function(a){return Wi(this,a,Math.max(1E4,this.D/3))}; g.k.oa=function(a,b,c,d,e,f,h){var l=this,m=this.Y(this)||{};g.Yb(m,e);this.D=m.duration||this.D;this.P=m.isVpaid||this.P;this.la=m.isYouTube||this.la;e=bca(this,b);1===rj(this)&&(f=e);Ti.prototype.oa.call(this,a,b,c,d,m,f,h);this.C&&this.C.u&&g.Cb(this.K,function(n){hj(n,l)})}; g.k.hz=function(a,b,c){Ti.prototype.hz.call(this,a,b,c);qj(this).update(a,b,this.ze,c);this.Pa=bj(this.ze)&&bj(b);-1==this.ea&&this.Aa&&(this.ea=this.Qf().C.u);this.oe.C=0;a=this.Vl();b.isVisible()&&cj(this.oe,"vs");a&&cj(this.oe,"vw");ai(b.volume)&&cj(this.oe,"am");bj(b)&&cj(this.oe,"a");this.gn&&cj(this.oe,"f");-1!=b.B&&(cj(this.oe,"bm"),1==b.B&&cj(this.oe,"b"));bj(b)&&b.isVisible()&&cj(this.oe,"avs");this.Pa&&a&&cj(this.oe,"avw");0this.u.K&&(this.u=this,ii(this)),this.K=a);return 2==a}; La(Uj);La(Vj);Wj.prototype.HC=function(){Zj(this,Jj(),!1)}; Wj.prototype.D=function(){var a=fi(),b=Oh();a?(Qh||(Rh=b,g.Cb(Ij.u,function(c){var d=c.Qf();d.ka=fj(d,b,1!=c.ee)})),Qh=!0):(this.K=bk(this,b),Qh=!1,zj=b,g.Cb(Ij.u,function(c){c.Hr&&(c.Qf().N=b)})); Zj(this,Jj(),!a)}; La(Wj);var Xj=Wj.getInstance();var ck=null,Lk="",Kk=!1;var x1=jk([void 0,1,2,3,4,8,16]),y1=jk([void 0,4,8,16]),qCa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:ik("p0",y1),p1:ik("p1",y1),p2:ik("p2",y1),p3:ik("p3",y1),cp:"cp",tos:"tos",mtos:"mtos",mtos1:hk("mtos1",[0,2,4],!1,y1),mtos2:hk("mtos2",[0,2,4],!1,y1),mtos3:hk("mtos3",[0,2,4],!1,y1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:ik("a0",y1),a1:ik("a1",y1),a2:ik("a2",y1),a3:ik("a3",y1),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",vpt:"vpt",gmm:"gmm", std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:ik("c0",y1),c1:ik("c1",y1),c2:ik("c2",y1),c3:ik("c3",y1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:ik("qmtos",x1),qnc:ik("qnc",x1),qmv:ik("qmv",x1),qnv:ik("qnv",x1),raf:"raf",rafc:"rafc", lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:ik("ss0",y1),ss1:ik("ss1",y1),ss2:ik("ss2",y1),ss3:ik("ss3",y1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},rCa={c:dk("c"),at:"at", atos:hk("atos",[0,2,4]),ta:function(a,b){return function(c){if(void 0===c[a])return b}}("tth","1"), a:"a",dur:"dur",p:"p",tos:gk(),j:"dom",mtos:hk("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:dk("ss"),vsv:Ya("w2"),t:"t"},sCa={atos:"atos",amtos:"amtos",avt:hk("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:dk("ss"),t:"t"},tCa={a:"a",tos:gk(),at:"at",c:dk("c"),mtos:hk("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:Ya("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},uCa={tos:gk(),at:"at",c:dk("c"),mtos:hk("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:Ya("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv", qmpt:hk("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Lc(b,function(e){return 0=e?1:0})}}("qnc",[1, .5,0]),qmv:"qmv",qa:"qas",a:"a"};var Dca={XU:"visible",RR:"audible",o1:"time",q1:"timetype"},ok={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, audible:function(a){return"0"==a||"1"==a}, timetype:function(a){return"mtos"==a||"tos"==a}, time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.u(pk,ij);pk.prototype.getId=function(){return this.K}; pk.prototype.F=function(){return!0}; pk.prototype.C=function(a){var b=a.Qf(),c=a.getDuration();return bi(this.I,function(d){if(void 0!=d.u)var e=Fca(d,b);else b:{switch(d.F){case "mtos":e=d.B?b.F.C:b.C.u;break b;case "tos":e=d.B?b.F.u:b.C.u;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0=d);return d})};g.u(qk,ij);qk.prototype.C=function(a){var b=Fi(a.Qf().u,1);return sj(a,b)};g.u(rk,ij);rk.prototype.C=function(a){return a.Qf().Vl()};g.u(uk,Gca);uk.prototype.u=function(a){var b=new sk;b.u=tk(a,qCa);b.C=tk(a,sCa);return b};g.u(vk,kj);vk.prototype.C=function(){var a=g.Ja("ima.admob.getViewability"),b=Rg(this.ub,"queryid");"function"===typeof a&&b&&a(b)}; vk.prototype.getName=function(){return"gsv"};g.u(wk,pi);wk.prototype.getName=function(){return"gsv"}; wk.prototype.Dp=function(){var a=ci.getInstance();rh.getInstance();return a.B&&!1}; wk.prototype.qt=function(a,b,c){return new vk(this.u,b,c)};g.u(xk,kj);xk.prototype.C=function(){var a=this,b=g.Ja("ima.bridge.getNativeViewability"),c=Rg(this.ub,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Sb(d)&&a.F++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.u=$h(d.opt_nativeViewBounds||{});var h=a.B.C;h.u=f?oCa.clone():$h(e);a.timestamp=d.opt_nativeTime||-1;ci.getInstance().u=h.u;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})}; xk.prototype.getName=function(){return"nis"};g.u(yk,pi);yk.prototype.getName=function(){return"nis"}; yk.prototype.Dp=function(){var a=ci.getInstance();rh.getInstance();return a.B&&!1}; yk.prototype.qt=function(a,b,c){return new xk(this.u,b,c)};g.u(zk,hi);g.k=zk.prototype;g.k.Dt=function(){return null!=this.B.Eh}; g.k.sB=function(){var a={};this.fa&&(a.mraid=this.fa);this.X&&(a.mlc=1);a.mtop=this.B.mQ;this.I&&(a.mse=this.I);this.ea&&(a.msc=1);a.mcp=this.B.compatibility;return a}; g.k.Yk=function(a,b){for(var c=[],d=1;dthis.C?this.B:2*this.B)-this.C);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.u[b]>>>d&255;return a};g.u(cl,uk);cl.prototype.u=function(a){var b=uk.prototype.u.call(this,a);var c=Vk=g.A();var d=Wk(5);c=(Yk?!d:d)?c|2:c&-3;d=Wk(2);c=(Zk?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.B||(this.B=Xca());b.F=this.B;b.I=tk(a,rCa,c,"h",dl("kArwaWEsTs"));b.D=tk(a,tCa,{},"h",dl("b96YPMzfnx"));b.B=tk(a,uCa,{},"h",dl("yb8Wev6QDg"));return b};el.prototype.u=function(){return g.Ja(this.B)};g.u(fl,el);fl.prototype.u=function(a){if(!a.Ln)return el.prototype.u.call(this,a);var b=this.D[a.Ln];if(b)return function(c,d,e){b.B(c,d,e)}; Nh(393,Error());return null};g.u(gl,Hk);g.k=gl.prototype;g.k.ts=function(a,b){var c=this,d=Mj.getInstance();if(null!=d.u)switch(d.u.getName()){case "nis":var e=ada(this,a,b);break;case "gsv":e=$ca(this,a,b);break;case "exc":e=bda(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Qca(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.li()&&(e.Y==g.Ka&&(e.Y=function(f){return c.SC(f)}),Zca(this,e,b)); return e}; g.k.SC=function(a){a.B=0;a.fa=0;if("h"==a.F||"n"==a.F){var b;rh.getInstance();if(a.Ln&&jl(this)){var c=this.N[a.Ln];c?b=function(e){return c.u(e)}:null!==c&&Nh(379,Error())}else b=g.Ja("ima.common.getVideoMetadata"); if("function"===typeof b)try{var d=b(a.af)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.F)if(b=g.Ja("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{d=b(a.af)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.F)if(b=g.Ja("ima.common.getVideoMetadata"),"function"===typeof b)try{d=b(a.af)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===d?a.B|=8:null===d?a.B|=16:g.Sb(d)?a.B|=32:null!=d.errorCode&&(a.fa=d.errorCode,a.B|=64));null==d&&(d={});Rca(d,a);ai(d.volume)&&ai(void 0)&&(d.volume*=NaN); return d}; g.k.KA=function(){if(jl(this))return new fl("ima.common.triggerExternalActivityEvent",this.C,this.N);var a=cda(this);return null!=a?new el(a,this.C):null}; g.k.qy=function(a){!a.u&&a.nn&&Ok(this,a,"overlay_unmeasurable_impression")&&(a.u=!0)}; g.k.vF=function(a){a.IF&&(a.Vl()?Ok(this,a,"overlay_viewable_end_of_session_impression"):Ok(this,a,"overlay_unviewable_impression"),a.IF=!1)}; g.k.KB=function(){}; g.k.zy=function(){}; g.k.fq=function(a,b,c,d){a=Hk.prototype.fq.call(this,a,b,c,d);this.F&&(b=this.I,null==a.I&&(a.I=new Wba),b.u[a.af]=a.I,a.I.F=pCa);return a}; g.k.Po=function(a){a&&1==a.li()&&this.F&&delete this.I.u[a.af];return Hk.prototype.Po.call(this,a)}; La(gl);var hl=new sk;hl.F="stopped";hl.u="stopped";hl.C="stopped";hl.I="stopped";hl.D="stopped";hl.B="stopped";Object.freeze(hl);var vCa=Jh(193,ll,Rk);g.Fa("Goog_AdSense_Lidar_sendVastEvent",vCa,void 0);var wCa=Mh(194,function(a,b){b=void 0===b?{}:b;var c=il(gl.getInstance(),a,b);return kl(c)}); g.Fa("Goog_AdSense_Lidar_getViewability",wCa,void 0);var xCa=Jh(195,function(){return lh()},void 0); g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",xCa,void 0);var yCa=Mh(196,function(){return g.Cj(lh())}); g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",yCa,void 0);var gea=(new Date).getTime();var Gl=!g.re||g.Vd(9),zCa=g.re&&!g.Ud("9");!g.ve||g.Ud("528");ng&&g.Ud("1.9b")||g.re&&g.Ud("8")||g.og&&g.Ud("9.5")||g.ve&&g.Ud("528");ng&&!g.Ud("8")||g.re&&g.Ud("9");var kda=function(){if(!g.v.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{g.v.addEventListener("test",g.Ka,b),g.v.removeEventListener("test",g.Ka,b)}catch(c){}return a}();g.ql.prototype.stopPropagation=function(){this.u=!0}; g.ql.prototype.preventDefault=function(){this.defaultPrevented=!0};var uua;uua=g.ve?"webkitAnimationEnd":g.og?"oanimationend":"animationend";g.Ta(rl,g.ql);var ACa={2:"touch",3:"pen",4:"mouse"}; rl.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?ng&&(Qd(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX? a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:ACa[a.pointerType]||"";this.state=a.state;this.B=a;a.defaultPrevented&&this.preventDefault()}; rl.prototype.stopPropagation=function(){rl.xd.stopPropagation.call(this);this.B.stopPropagation?this.B.stopPropagation():this.B.cancelBubble=!0}; rl.prototype.preventDefault=function(){rl.xd.preventDefault.call(this);var a=this.B;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,zCa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var sl="closure_listenable_"+(1E6*Math.random()|0),hda=0;vl.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.u++);var h=xl(a,b,d,e);-1>>0);g.Ta(g.Nl,g.C);g.Nl.prototype[sl]=!0;g.k=g.Nl.prototype;g.k.addEventListener=function(a,b,c,d){zl(this,a,b,c,d)}; g.k.removeEventListener=function(a,b,c,d){Hl(this,a,b,c,d)}; g.k.dispatchEvent=function(a){var b=this.la;if(b){var c=[];for(var d=1;b;b=b.la)c.push(b),++d}b=this.Aa;d=a.type||a;if("string"===typeof a)a=new g.ql(a,b);else if(a instanceof g.ql)a.target=a.target||b;else{var e=a;a=new g.ql(d,b);g.Yb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Ol(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Ol(h,d,!0,a)&&e,a.u||(e=Ol(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f2*this.C&&Cm(this),!0):!1}; g.k.get=function(a,b){return Bm(this.B,a)?this.B[a]:b}; g.k.set=function(a,b){Bm(this.B,a)||(this.C++,this.u.push(a),this.jl++);this.B[a]=b}; g.k.forEach=function(a,b){for(var c=this.Hg(),d=0;d=d.u.length)throw Yi;var f=d.u[b++];return a?f:d.B[f]}; return e};g.Dm.prototype.toString=function(){var a=[],b=this.F;b&&a.push(Km(b,BCa,!0),":");var c=this.u;if(c||"file"==b)a.push("//"),(b=this.N)&&a.push(Km(b,BCa,!0),"@"),a.push(hd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.B)this.u&&"/"!=c.charAt(0)&&a.push("/"),a.push(Km(c,"/"==c.charAt(0)?CCa:DCa,!0));(c=this.C.toString())&&a.push("?",c);(c=this.I)&&a.push("#",Km(c,ECa));return a.join("")}; g.Dm.prototype.resolve=function(a){var b=this.clone(),c=!!a.F;c?g.Em(b,a.F):c=!!a.N;c?b.N=a.N:c=!!a.u;c?g.Fm(b,a.u):c=null!=a.D;var d=a.B;if(c)g.Gm(b,a.D);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.u&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=lc(e,"/");e=e.split("/");for(var f=[],h=0;ha&&0===a%1&&this.B[a]!=b&&(this.B[a]=b,this.u=-1)}; Tm.prototype.get=function(a){return!!this.B[a]};g.Ta(g.Um,g.C);g.k=g.Um.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Vm(this),b=Wm(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.u=zl(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.u=a&&b?a.call(this.B,this.C):this.B.setTimeout(kaa(this.C),20)}; g.k.Lb=function(){this.isActive()||this.start()}; g.k.stop=function(){if(this.isActive()){var a=Vm(this),b=Wm(this);a&&!b&&this.B.mozRequestAnimationFrame?Il(this.u):a&&b?b.call(this.B,this.u):this.B.clearTimeout(this.u)}this.u=null}; g.k.jg=function(){this.isActive()&&(this.stop(),this.DB())}; g.k.isActive=function(){return null!=this.u}; g.k.DB=function(){this.D&&this.u&&Il(this.u);this.u=null;this.I.call(this.F,g.A())}; g.k.ba=function(){this.stop();g.Um.xd.ba.call(this)};g.Ta(g.F,g.C);g.k=g.F.prototype;g.k.kp=0;g.k.ba=function(){g.F.xd.ba.call(this);this.stop();delete this.u;delete this.B}; g.k.start=function(a){this.stop();this.kp=g.ym(this.C,void 0!==a?a:this.qf)}; g.k.Lb=function(a){this.isActive()||this.start(a)}; g.k.stop=function(){this.isActive()&&g.v.clearTimeout(this.kp);this.kp=0}; g.k.jg=function(){this.isActive()&&g.Xm(this)}; g.k.isActive=function(){return 0!=this.kp}; g.k.EB=function(){this.kp=0;this.u&&this.u.call(this.B)};g.Ta(Ym,$k);Ym.prototype.reset=function(){this.u[0]=1732584193;this.u[1]=4023233417;this.u[2]=2562383102;this.u[3]=271733878;this.u[4]=3285377520;this.D=this.C=0}; Ym.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.B,d=0,e=this.I,f=this.C;dthis.C?this.update(this.F,56-this.C):this.update(this.F,this.B-(this.C-56));for(var c=this.B-1;56<=c;c--)this.I[c]=b&255,b/=256;Zm(this,this.I);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.u[c]>>d&255,++b;return a};g.Ta(g.hn,g.Nl);g.k=g.hn.prototype;g.k.Jb=function(){return 1==this.Ia}; g.k.St=function(){this.Eg("begin")}; g.k.Tp=function(){this.Eg("end")}; g.k.Rf=function(){this.Eg("finish")}; g.k.Eg=function(a){this.dispatchEvent(a)};var FCa=$a(function(){if(g.re)return g.Ud("10.0");var a=g.Ae("DIV"),b=g.ve?"-webkit":ng?"-moz":g.re?"-ms":g.og?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!dCa.test("div"))throw Error("");if("DIV"in fCa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!dCa.test(h))throw Error("");var e=b[h];if(null!=e){var f=h;if(e instanceof dc)e=ec(e);else if("style"==f.toLowerCase()){if(!g.Oa(e))throw Error(""); e instanceof Jc||(e=Oc(e));e=Kc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in eCa)if(e instanceof hc)e=ic(e).toString();else if(e instanceof g.Bc)e=g.Cc(e);else if("string"===typeof e)e=g.Gc(e).Ig();else throw Error("");}e.xj&&(e=e.Ig());f=f+'="'+vc(String(e))+'"';d+=" "+f}}var h="":(c=Gaa(d),h+=">"+g.Zc(c).toString()+"",c=c.u());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=$c(h,c);g.dd(a, b);return""!=g.pg(a.firstChild,"transition")});g.Ta(jn,g.hn);g.k=jn.prototype;g.k.play=function(){if(this.Jb())return!1;this.St();this.Eg("play");this.startTime=g.A();this.Ia=1;if(FCa())return g.lg(this.u,this.I),this.D=g.ym(this.IP,void 0,this),!0;this.zw(!1);return!1}; g.k.IP=function(){g.Bg(this.u);zda(this.u,this.K);g.lg(this.u,this.C);this.D=g.ym((0,g.z)(this.zw,this,!1),1E3*this.F)}; g.k.stop=function(){this.Jb()&&this.zw(!0)}; g.k.zw=function(a){g.lg(this.u,"transition","");g.v.clearTimeout(this.D);g.lg(this.u,this.C);this.endTime=g.A();this.Ia=0;a?this.Eg("stop"):this.Rf();this.Tp()}; g.k.ba=function(){this.stop();jn.xd.ba.call(this)}; g.k.pause=function(){};var Ada={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};var Eda=ln("getPropertyValue"),Fda=ln("setProperty");var Dda={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.pn.prototype.clone=function(){return new g.pn(this.u,this.F,this.C,this.I,this.D,this.K,this.B,this.N)};g.rn.prototype.B=0;g.rn.prototype.reset=function(){this.u=this.C=this.D;this.B=0}; g.rn.prototype.getValue=function(){return this.C};tn.prototype.clone=function(){return new tn(this.start,this.end)}; tn.prototype.getLength=function(){return this.end-this.start};var GCa=new WeakMap;(function(){if(GBa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Rc))?a[1]:"0"}return MD?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Rc))?a[0].replace(/_/g,"."):"10"):g.nr?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Rc))?a[1]:""):hCa||iCa||jCa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Rc))?a[1].replace(/_/g,"."):""):""})();var Mda=function(){if(g.aC)return un(/Firefox\/([0-9.]+)/);if(g.re||g.ur||g.og)return Td;if(g.iA)return Od()?un(/CriOS\/([0-9.]+)/):un(/Chrome\/([0-9.]+)/);if(g.bC&&!Od())return un(/Version\/([0-9.]+)/);if(VC||HH){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Rc);if(a)return a[1]+"."+a[2]}else if(g.NC)return(a=un(/Android\s+([0-9.]+)/))?a:un(/Version\/([0-9.]+)/);return""}();g.Ta(g.wn,g.C);g.k=g.wn.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.F;this.u[e]=a;this.u[e+1]=b;this.u[e+2]=c;this.F=e+3;d.push(e);return e}; g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.u;if(a=g.db(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.Pl(a)}return!1}; g.k.Pl=function(a){var b=this.u[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.u[a+1]=g.Ka):(c&&g.ob(c,a),delete this.u[a],delete this.u[a+1],delete this.u[a+2])}return!!b}; g.k.V=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)throw Yi;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; g.k.clear=function(){this.u.clear()}; g.k.key=function(a){return this.u.key(a)};g.Ta(Gn,Fn);g.Ta(Hn,Fn);g.Ta(Jn,En);var Pda={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},In=null;g.k=Jn.prototype;g.k.isAvailable=function(){return!!this.u}; g.k.set=function(a,b){this.u.setAttribute(Kn(a),b);Ln(this)}; g.k.get=function(a){a=this.u.getAttribute(Kn(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.k.remove=function(a){this.u.removeAttribute(Kn(a));Ln(this)}; g.k.dj=function(a){var b=0,c=this.u.XMLDocument.documentElement.attributes,d=new Xi;d.next=function(){if(b>=c.length)throw Yi;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; g.k.clear=function(){for(var a=this.u.XMLDocument.documentElement,b=a.attributes.length;0=b)){if(1==b)lb(a);else{a[0]=a.pop();a=0;b=this.u;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,h=2*a+2;f=he.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.k.Af=function(){for(var a=this.u,b=[],c=a.length,d=0;dc;c++)b+=this.B[c]||0;3<=b&&this.P();this.F=d}this.D=a;this.I=this.u;this.C=(this.C+1)%4}}; To.prototype.ba=function(){window.clearInterval(this.W);g.Io(this.N)};g.u(Yo,Uo);Yo.prototype.start=function(){var a=g.Ja("yt.scheduler.instance.start");a&&a()}; Yo.prototype.pause=function(){var a=g.Ja("yt.scheduler.instance.pause");a&&a()}; La(Yo);Yo.getInstance();var ep={};var z1;z1=window;g.N=z1.ytcsi&&z1.ytcsi.now?z1.ytcsi.now:z1.performance&&z1.performance.timing&&z1.performance.now&&z1.performance.timing.navigationStart?function(){return z1.performance.timing.navigationStart+z1.performance.now()}:function(){return(new Date).getTime()};var cea=g.$n("initial_gel_batch_timeout",1E3),sp=Math.pow(2,16)-1,tp=null,rp=0,ip=void 0,gp=0,hp=0,vp=0,mp=!0,jp=g.v.ytLoggingTransportGELQueue_||new Map;g.Fa("ytLoggingTransportGELQueue_",jp,void 0);var pp=g.v.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",pp,void 0);var up=g.v.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",up,void 0);var fea={q:!0,search_query:!0};var Kp=new function(){var a=window.document;this.u=window;this.B=a}; g.Fa("yt.ads_.signals_.getAdSignalsString",function(a){return Ap(Mp(a))},void 0);var Np="XMLHttpRequest"in g.v?function(){return new XMLHttpRequest}:null;var Qp={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},jea="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address client_dev_root_url".split(" "), Xp=!1,fF=Rp;dq.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.u)try{this.u.set(a,b,g.A()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Cj(b))}catch(f){return}else e=escape(b);g.aq(a,e,c,this.B)}; dq.prototype.get=function(a,b){var c=void 0,d=!this.u;if(!d)try{c=this.u.get(a)}catch(e){d=!0}if(d&&(c=g.bq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; dq.prototype.remove=function(a){this.u&&this.u.remove(a);g.cq(a,"/",this.B)};fq.prototype.toString=function(){return this.topic};var LCa=g.Ja("ytPubsub2Pubsub2Instance")||new g.wn;g.wn.prototype.subscribe=g.wn.prototype.subscribe;g.wn.prototype.unsubscribeByKey=g.wn.prototype.Pl;g.wn.prototype.publish=g.wn.prototype.V;g.wn.prototype.clear=g.wn.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",LCa,void 0);var iq=g.Ja("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",iq,void 0);var kq=g.Ja("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",kq,void 0); var jq=g.Ja("ytPubsub2Pubsub2IsAsync")||{};g.Fa("ytPubsub2Pubsub2IsAsync",jq,void 0);g.Fa("ytPubsub2Pubsub2SkipSubKey",null,void 0);nq.prototype.u=function(a,b){var c={},d=pl([]);if(d){c.Authorization=d;var e=d=null===b||void 0===b?void 0:b.sessionIndex;void 0===e&&(e=Number(g.L("SESSION_INDEX",0)),e=isNaN(e)?0:e);c["X-Goog-AuthUser"]=e;"INNERTUBE_HOST_OVERRIDE"in Vn||(c["X-Origin"]=window.location.origin);g.Zn("pageid_as_header_web")&&void 0===d&&"DELEGATED_SESSION_ID"in Vn&&(c["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID"))}return c};var Tw={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var sq=[],pq,uq=!1;wq.all=function(a){return new wq(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Em:0};f.Emb&&a.u.createObjectStore("databases",{keyPath:"actualName"})}});var B1=new g.Nl;var vr;g.u(Cr,qr);Cr.prototype.Ux=function(a,b,c){c=void 0===c?{}:c;return(this.options.kQ?Eea:Dea)(a,b,Object.assign(Object.assign({},c),{clearDataOnAuthChange:this.options.clearDataOnAuthChange}))}; Cr.prototype.CA=function(a){B1.Ts.call(B1,"authchanged",a)}; Cr.prototype.DA=function(a){B1.Hb("authchanged",a)}; Cr.prototype["delete"]=function(a){a=void 0===a?{}:a;return(this.options.kQ?Gea:Fea)(this.name,a)};g.u(Dr,wq);Dr.reject=wq.reject;Dr.resolve=wq.resolve;Dr.all=wq.all;var Er;g.u(Hr,g.Nl);g.u(Kr,g.Nl);var Lr;g.Or.prototype.isReady=function(){!this.Nf&&Zp()&&(this.Nf=g.op());return!!this.Nf};var Mea=[{GC:function(a){return"Cannot read property '"+a.key+"'"}, Xx:{TypeError:[{Rg:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Rg:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Rg:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,groups:["value","key"]},{Rg:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/, groups:["key"]},{Rg:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]}],Error:[{Rg:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{GC:function(a){return"Cannot call '"+a.key+"'"}, Xx:{TypeError:[{Rg:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Rg:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Rg:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Rg:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Rg:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]}, {Rg:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}}];var Pr;var Xr=new g.wn;var Wr=new Set,Vr=0,Yr=0,Nea=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];$r.prototype.initialize=function(a,b,c,d,e,f){var h=this;f=void 0===f?!1:f;b?(this.Fd=!0,g.wo(b,function(){h.Fd=!1;var l=0<=b.indexOf("/th/");if(l?window.trayride:window.botguard)as(h,c,d,f,l);else{l=xo(b);var m=document.getElementById(l);m&&(vo(l),m.parentNode.removeChild(m));g.Ur(new g.Gq("Unable to load Botguard","from "+b))}},e)):a&&(e=g.Ae("SCRIPT"),e.textContent=a,e.nonce=Ia(),document.head.appendChild(e),document.head.removeChild(e),((a=a.includes("trayride"))?window.trayride:window.botguard)? as(this,c,d,f,a):g.Ur(Error("Unable to load Botguard from JS")))}; $r.prototype.Pd=function(){return!!this.u}; $r.prototype.dispose=function(){this.u=null};var Pea=[],ds=!1;g.u(fs,Va);is.prototype.then=function(a,b,c){return 1===this.Ia&&a?(a=a.call(c,this.u),cm(a)?a:ks(a)):2===this.Ia&&b?(a=b.call(c,this.u),cm(a)?a:js(a)):this}; is.prototype.getValue=function(){return this.u}; is.prototype.$goog_Thenable=!0;g.u(ms,Va);ms.prototype.name="BiscottiError";g.u(ls,Va);ls.prototype.name="BiscottiMissingError";var os={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},ns=null;var us=g.Ja("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",us,void 0);g.k=g.vs.prototype;g.k.get=function(a,b){zs(a);ys(a);var c=void 0!==us[a]?us[a].toString():null;return null!=c?c:b?b:""}; g.k.set=function(a,b){zs(a);ys(a);if(null==b)throw Error("ExpectedNotNull");us[a]=b.toString()}; g.k.remove=function(a){zs(a);ys(a);delete us[a]}; g.k.save=function(){g.aq(this.u,this.dump(),63072E3)}; g.k.clear=function(){g.Tb(us)}; g.k.dump=function(){var a=[],b;for(b in us)a.push(b+"="+encodeURIComponent(String(us[b])));return a.join("&")}; La(g.vs);var Sea=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Uea=["/fashion","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ","/channel/UCTApTkbpcqiLL39WUlne4ig","/channel/UCW5PCzG3KQvbOX4zc3KY0lQ"];g.u(Fs,g.C);Fs.prototype.R=function(a,b,c,d,e){c=io((0,g.z)(c,d||this.Aa));c={target:a,name:b,callback:c};var f;e&&KCa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c}; Fs.prototype.Hb=function(a){for(var b=0;b=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{Cs:b,xm:c}}; g.k.isFocused=function(a){return a>=this.C&&athis.info.ob||4==this.info.type)return!0;var b=nv(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2==this.info.type)return c==this.info.ob&&1936286840==b;if(3==this.info.type&&0==this.info.C)return 1836019558==b||1936286840== b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==this.info.u.info.containerType){if(4>this.info.ob||4==this.info.type)return!0;c=nv(this).getUint32(0,!1);a.ebm=c.toString();if(3==this.info.type&&0==this.info.C)return 524531317==c||440786851==c}return!0};var yv={Sw:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}, Z4:function(a){a.reverse()}, lt:function(a,b){a.splice(0,b)}};var sBa=/^https?:\/\/([^.]*\.moatads\.com\/|e[0-9]+\.yt\.srs\.doubleverify\.com|pagead2\.googlesyndication\.com\/pagead\/gen_204\?id=yt3p&sr=1&|pm\.adsafeprotected\.com\/youtube|pm\.test-adsafeprotected\.com\/youtube|youtube[0-9]+\.moatpixel\.com\/)/,Cv=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^https:\/\/([a-z]+\.)?[0-9a-f]{1,63}\.sslproxy\.corp\.google\.com\/|^https:\/\/([a-z]+\.)?[a-z0-9\-]{1,63}\.demos\.corp\.google\.com\/|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.com\/|^https?:\/\/((?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(-nocookie|kids)?\.com\/|([A-Za-z0-9-]{1,63}\.)*(youtube\.googleapis\.com)[.]?(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.c\.googlers\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|(tv|tv-green-qa|tv-release-qa)\.youtube\.com\/|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/)/, tBa=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,rfa=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.google\.com|currents\.google\.com|mail\.google\.com|youtube\.com|youtube\-nocookie\.com|youtubekids\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$))/, pfa=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|prod\.google\.com|youtube\.com|youtubekids\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$))/,nfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|currents\.google\.com|video\.google\.com|youtube\.com|ytimg\.com|ytimg\.sandbox\.google\.com|chat\.google\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/, uBa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,ofa=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|www\.youtube\.com\/pagead\/conversion)/,mfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|prod\.google\.com|lh3\.photos\.google\.com|plus\.google\.com|currents\.google\.com|mail\.google\.com|youtube\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com|shopping\.google\.com|cdn\.shoploop\.tv)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|([A-Za-z0-9-]{1,63}\.)*c\.lh3(-d[a-gz]|-testonly)?\.(googleusercontent|photos\.google)\.com\/.*$)/, tha=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|ytimg\.com|ytimg\.sandbox\.google\.com)[.]?(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/, sha=/^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https:\/\/canvastester-3fd0b\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-d\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-f\.appspot\.com(\/|$)|^https:\/\/one\.google\.com(\/|$)|^https:\/\/www\.gstatic\.com\/aog_howto|^https:\/\/www\.gstatic\.com\/narrative_cast_receiver\/news|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|photos\.google\.com|get\.google\.com|class\.photos\.google\.com|plus\.google\.com|currents\.google\.com|books\.googleusercontent\.com|play\-books\-autopush\-sandbox\.googleusercontent\.com|play\-books\-canary\-sandbox\.googleusercontent\.com|play\-books\-internal\-sandbox\.googleusercontent\.com|play\-books\-staging\-sandbox\.googleusercontent\.com|blogger\.com|mail\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|vevo\.com|chat\.google\.com|meet\.google\.com|stadia\.google\.com|shoploop\.area120\.google\.com|shopping\.google\.com)[.]?(:[0-9]+)?(\/|$)|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|(www\.|encrypted\.)?google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/(search|webhp)\?|(www\.|encrypted\.)google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/?$|lightbox-(demos|builder)\.appspot\.com\/|s0\.2mdn\.net\/instream\/html5\/native\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/, UCa=/^(https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/plus\.google\.com|https\:\/\/currents\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/chat\.google\.com|https\:\/\/stadia\.google\.com|https\:\/\/one\.google\.com|https\:\/\/shoploop\.area120\.google\.com|https\:\/\/shopping\.google\.com)$|^http:\/\/[0-9]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?$|^https:\/\/((staging|stream|today)\.)?meet\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*youtube\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sandbox\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com$|^https:\/\/(books|play-books-(autopush|canary|internal|staging)-sandbox)\.googleusercontent\.com$|^https:\/\/(draft|www|(www\.)?dev\.sandbox|(www\.)?autopush\.sandbox|(www\.)?restore\.sandbox)\.blogger\.com$|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.com$|^https?:\/\/(((docs|m|sing|ss|sss|www)\.)?drive\.google\.com$|([A-Za-z0-9-]{1,63}\.)*c\.googlers\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*corp\.google\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*googleplex\.com(:[0-9]+)?$|(www\.|encrypted\.)google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/?$|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?$|docs\.google\.com$)/;Kv.prototype.set=function(a,b){this.u[a]!==b&&(this.u[a]=b,this.url="")}; Kv.prototype.get=function(a){Lv(this);return this.u[a]||null}; Kv.prototype.Bd=function(){this.url||(this.url=sfa(this));return this.url}; Kv.prototype.clone=function(){var a=new Kv(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.u=g.Vb(this.u);a.url=this.url;return a};Tv.prototype.set=function(a,b){this.fg.get(a);this.u[a]=b;this.url=""}; Tv.prototype.get=function(a){return this.u[a]||this.fg.get(a)}; Tv.prototype.Bd=function(){this.url||(this.url=tfa(this));return this.url};ew.prototype.Cg=function(){return Zt(this.u[0])};var D1={},PB=(D1.WIDTH={name:"width",video:!0,valid:640,invalid:99999},D1.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},D1.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},D1.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},D1.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},D1.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},D1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},D1.DECODETOTEXTURE={name:"decode-to-texture", video:!0,valid:"false",invalid:"nope"},D1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},D1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},D1);var tw={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"h",214:"h",216:"h",374:"h",375:"h",140:"a",141:"ah",327:"sa",258:"m",380:"mac3",328:"meac3",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",227:"H",147:"H",384:"H",376:"H",385:"H",377:"H",149:"A",261:"M",381:"MAC3",329:"MEAC3",598:"9",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",353:"9",355:"9",271:"9",313:"9",272:"9",302:"9",303:"9",407:"9", 408:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",336:"9h",337:"9h",338:"so",600:"o",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",279:"(",280:"(",317:"(",318:"(",273:"(",274:"(",357:"(",358:"(",275:"(",359:"(",360:"(",276:"(",583:"(",584:"(",314:"(",585:"(",561:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",591:"(h",592:"(h",367:"(h",586:"(h",587:"(h",368:"(h",588:"(h",562:"(h",409:"(",410:"(",411:"(",412:"(",557:"(",558:"(",394:"1",395:"1", 396:"1",397:"1",398:"1",399:"1",400:"1",401:"1",571:"1",402:"1",386:"3",387:"w",406:"6"};var iha={UR:"auto",r1:"tiny",PW:"light",U0:"small",HY:"medium",MW:"large",FV:"hd720",AV:"hd1080",BV:"hd1440",CV:"hd2160",EV:"hd2880",LV:"highres",UNKNOWN:"unknown"};var E1;E1={};g.mw=(E1.auto=0,E1.tiny=144,E1.light=144,E1.small=240,E1.medium=360,E1.large=480,E1.hd720=720,E1.hd1080=1080,E1.hd1440=1440,E1.hd2160=2160,E1.hd2880=2880,E1.highres=4320,E1);var qw="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");g.k=uw.prototype;g.k.Ka=function(){return this.video}; g.k.Tb=function(){return this.id.split(";",1)[0]}; g.k.Qd=function(){return 2===this.containerType}; g.k.isEncrypted=function(){return!!this.Ld}; g.k.isAudio=function(){return!!this.audio}; g.k.isVideo=function(){return!!this.video};g.k=Cw.prototype;g.k.jf=function(){}; g.k.mn=function(){}; g.k.te=function(){return!!this.u&&this.index.Lc()}; g.k.Jj=function(){}; g.k.QC=function(){return!1}; g.k.Jl=function(){}; g.k.gm=function(){}; g.k.qk=function(){}; g.k.rj=function(){}; g.k.As=function(){}; g.k.RC=function(a){return[a]}; g.k.pu=function(a){return[a]}; g.k.au=function(){}; g.k.gs=function(){};g.u(Dw,Cw);g.k=Dw.prototype;g.k.jf=function(){return!1}; g.k.mn=function(){return!1}; g.k.QC=function(){return this.I}; g.k.Jl=function(){if(this.I)return[];var a=new Yt(1,this,this.initRange,"getMetadataRequestInfos");return[new ew([a],this.X)]}; g.k.gm=function(){return null}; g.k.qk=function(a){this.Jj(a);return this.Ok(a.D?a.B+1:a.B,!1)}; g.k.rj=function(a,b){b=void 0===b?!1:b;var c=this.index.oh(a);b&&(c=Math.min(this.index.Rb(),c+1));return this.Ok(c,!0)}; g.k.As=function(a){this.u=new Uint8Array(nv(a).buffer)}; g.k.Jj=function(a){return 0==a.ob?!0:this.index.Rb()>a.B&&this.index.nh()<=a.B+1}; g.k.update=function(a,b,c){this.index.append(a);Ot(this.index,c);this.N=b}; g.k.te=function(){return this.I?!0:Cw.prototype.te.call(this)}; g.k.Ok=function(a,b){var c=this.index.uw(a),d=this.index.Pe(a),e=this.index.getDuration(a),f;b?e=f=0:f=0=this.Rb())return 0;for(var c=0,d=this.Pe(a)+b,e=a;ethis.Pe(e);e++)c=Math.max(c,(e+1=this.index.xt(c+1);)c++;return Hw(this,c,b,a.ob).u}; g.k.Jj=function(a){return this.te()?!0:isNaN(this.I)?!1:a.range.end+1this.I&&(c=new Tt(c.start,this.I-1));c=[new Yt(4,a.u,c,"getNextRequestInfoByLength")];return new ew(c)}4==a.type&&(c=this.pu(a),a=c[c.length-1]);c=0;var d=a.range.start+a.C+a.ob;3==a.type&&(c=a.B,d==a.range.end+1&&(c+=1));return Hw(this,c,d,b)}; g.k.qk=function(){return null}; g.k.rj=function(a,b){var c=this.index.oh(a);b&&(c=Math.min(this.index.Rb(),c+1));return Hw(this,c,this.index.xt(c),0)}; g.k.jf=function(){return!0}; g.k.mn=function(){return!1}; g.k.gs=function(){return this.indexRange.length+this.initRange.length}; g.k.au=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};var Iw=void 0;var Kw=null;var F1={},Vw=function(a,b){var c;return function(){c||(c=new Cr(a,b));return c}}("yt-player-local-media",{LD:(F1.index=!0,F1.media=!0,F1.metadata=!0,F1.playerdata=!0,F1), upgrade:function(a,b){2>b&&(a.u.createObjectStore("index",void 0),a.u.createObjectStore("media",void 0));3>b&&a.u.createObjectStore("metadata",void 0);4>b&&a.u.createObjectStore("playerdata",void 0)}, version:4}),Sw=!1;dx.prototype.then=function(a,b){return this.promise.then(a,b)}; dx.prototype.resolve=function(a){this.B(a)}; dx.prototype.reject=function(a){this.u(a)};g.k=jx.prototype;g.k.mw=function(){return 0}; g.k.rD=function(){return null}; g.k.rB=function(){return null}; g.k.isFailed=function(){return 6===this.state}; g.k.Tx=function(){this.callback&&this.callback(this)}; g.k.ma=function(){return-1===this.state}; g.k.dispose=function(){this.info.Cg()&&5!==this.state&&(this.info.u[0].u.D=!1);lx(this,-1)};ox.prototype.skip=function(a){this.offset+=a};var Dx=!1;g.u(rx,g.O);rx.prototype.getDuration=function(){return this.C.index.pk()};g.k=Jx.prototype;g.k.he=function(a){return"content-type"===a?this.Gk.get("type"):""}; g.k.abort=function(){}; g.k.Ql=function(){return!0}; g.k.Zo=function(){return this.range.length}; g.k.vt=function(){return this.loaded}; g.k.Bs=function(){return!!this.u.getLength()}; g.k.sh=function(){return!!this.u.getLength()}; g.k.wt=function(){var a=this.u;this.u=new bv;return a}; g.k.sx=function(){return this.u}; g.k.Ui=function(){return!0}; g.k.my=function(){return!!this.error}; g.k.em=function(){return this.error};Lx.prototype.deactivate=function(){this.isActive&&(this.isActive=!1)};var dga=0;g.k=dy.prototype;g.k.start=function(a){var b=this,c={method:this.method,credentials:this.credentials};this.headers&&(c.headers=new Headers(this.headers));this.body&&(c.body=this.body);this.D&&(c.signal=this.D.signal);a=new Request(a,c);fetch(a).then(function(d){b.status=d.status;if(d.ok&&d.body)b.status=b.status||242,b.C=d.body.getReader(),b.ma()?b.C.cancel("Cancelling"):(b.K=d.headers,b.ca(),fy(b));else b.onDone()},function(d){b.onError(d)}).then(void 0,M)}; g.k.onDone=function(){if(!this.ma()){this.da();this.P=!0;if(ey(this)&&!this.u.getLength()&&!this.I&&this.B){cy(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.u.append(a);this.B+=a.length}this.X()}}; g.k.onError=function(a){this.da();this.errorMessage=String(a);this.I=!0;this.onDone()}; g.k.he=function(a){return this.K?this.K.get(a):null}; g.k.Ql=function(){return!!this.K}; g.k.vt=function(){return this.B}; g.k.Zo=function(){return+this.he("content-length")}; g.k.Bs=function(){return 200<=this.status&&300>this.status&&!!this.B}; g.k.da=function(){}; g.k.sh=function(){if(this.P)return!!this.u.getLength();var a=this.policy.C;if(a&&this.N+a>Date.now())return!1;a=this.Zo()||0;a=Math.max(16384,this.policy.u*a);this.W||(a=Math.max(a,16384));this.policy.ff&&cy(this)&&(a=1);return this.u.getLength()>=a}; g.k.wt=function(){this.sh();this.N=Date.now();this.W=!0;var a=this.u;this.u=new bv;return a}; g.k.sx=function(){this.sh();return this.u}; g.k.ma=function(){return this.aborted}; g.k.abort=function(){this.da();this.C&&this.C.cancel("Cancelling");this.D&&this.D.abort();this.aborted=!0}; g.k.Ui=function(){return!0}; g.k.my=function(){return this.I}; g.k.em=function(){return this.errorMessage};g.k=gy.prototype;g.k.onDone=function(){if(!this.ma){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.B=!0;this.C()}}; g.k.Yd=function(a){this.ma||(this.status=this.xhr.status,this.D(a.timeStamp,a.loaded))}; g.k.Ql=function(){return 2<=this.xhr.readyState}; g.k.he=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.jo(Error("Could not read XHR header "+a)),""}}; g.k.Zo=function(){return+this.he("content-length")}; g.k.vt=function(){return this.u}; g.k.Bs=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength}; g.k.sh=function(){return this.B&&!!this.response&&!!this.response.byteLength}; g.k.wt=function(){this.sh();var a=this.response;this.response=void 0;return new bv([new Uint8Array(a)])}; g.k.sx=function(){this.sh();return new bv([new Uint8Array(this.response)])}; g.k.abort=function(){this.ma=!0;this.xhr.abort()}; g.k.Ui=function(){return!1}; g.k.my=function(){return!1}; g.k.em=function(){return""};iy.prototype.qF=function(a,b){var c=this;b=void 0===b?1:b;this.u+=b;this.C+=a;var d=a/b;hy.forEach(function(e,f){dd.u&&4E12>a?a:g.A();Yx(d,a,b);50>a-d.D&&Zx(d)&&3!==Px(d)||Vx(d,a,b,c);b=this.timing;b.B>b.Ha&&Qx(b,b.B)&&3>this.state?lx(this,3):this.xb.Ui()&&Hy(this)&&lx(this,Math.max(2,this.state))}}; g.k.wP=function(){if(!this.ma()&&this.xb){if(!this.K&&this.xb.Ql()&&this.xb.he("X-Walltime-Ms")){var a=parseInt(this.xb.he("X-Walltime-Ms"),10);this.K=(g.A()-a)/1E3}this.xb.Ql()&&this.xb.he("X-Restrict-Formats-Hint")&&this.u.Qz&&!yy()&&YCa(!0);a=parseInt(this.xb.he("X-Head-Seqnum"),10);var b=parseInt(this.xb.he("X-Head-Time-Millis"),10);this.C=a||this.C;this.D=b||this.D}}; g.k.vP=function(){var a=this.xb;!this.ma()&&a&&(this.F.stop(),this.Ji=a.status,a=jga(this,a),6===a?ty(this):lx(this,a))}; g.k.Tx=function(a){4<=this.state&&(this.u.Zc?Fy(this):this.timing.deactivate());jx.prototype.Tx.call(this,a)}; g.k.XP=function(){if(!this.ma()){var a=g.A(),b=!1;Zx(this.timing)?(a=this.timing.P,Ox(this.timing),this.timing.P-a>=.8*this.W?(this.Qj++,b=5<=this.Qj):this.Qj=0):(b=this.timing,b.Fi&&ay(b,g.A()),a-=b.W,this.u.dg&&01E3*b);this.Qj&&this.callback&&this.callback(this);b?Gy(this,!1):this.F.start()}}; g.k.dispose=function(){jx.prototype.dispose.call(this);this.F.dispose();this.u.Zc||Fy(this)}; g.k.mw=function(){return this.K}; g.k.rD=function(){this.xb&&(this.C=parseInt(this.xb.he("X-Head-Seqnum"),10));return this.C}; g.k.rB=function(){this.xb&&(this.D=parseInt(this.xb.he("X-Head-Time-Millis"),10));return this.D}; var fga=0,Dy=-1;Ry.prototype.getDuration=function(){return this.u.index.pk()};Dz.prototype.C=function(a,b){var c=Math.pow(this.alpha,a);this.B=b*(1-c)+c*this.B;this.D+=a}; Dz.prototype.u=function(){return this.B/(1-Math.pow(this.alpha,this.D))};Fz.prototype.C=function(a,b){var c=Math.min(this.B,Math.max(1,Math.round(a*this.resolution)));c+this.valueIndex>=this.B&&(this.D=!0);for(;c--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.B;this.I=!0}; Fz.prototype.u=function(){return this.K?(Gz(this,this.F-this.K)+Gz(this,this.F)+Gz(this,this.F+this.K))/3:Gz(this,this.F)};Mz.prototype.setPlaybackRate=function(a){this.C=Math.max(1,a)}; Mz.prototype.getPlaybackRate=function(){return this.C};g.u(Tz,g.Nt);g.k=Tz.prototype;g.k.nh=function(){return this.B?this.segments.length?this.Ym(this.Cc()).nb:-1:g.Nt.prototype.nh.call(this)}; g.k.Cc=function(){if(this.I)return 0;if(!this.B)return g.Nt.prototype.Cc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.bb(this.segments).endTime-this.C,0);return 0c&&(this.segments=this.segments.slice(b))}}; g.k.Ym=function(a){if(!this.B)return g.Nt.prototype.Ym.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.nb+Math.floor((a-b.endTime)/this.u+1);else{b=yb(this.segments,function(d){return a=d.endTime?1:0}); if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.nb-b.nb-1))+1)+b.nb}return this.ki(b)}; g.k.ki=function(a){if(!this.B)return g.Nt.prototype.ki.call(this,a);if(!this.segments.length)return null;var b=Uz(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.u;if(0==c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].nb-a)*b);else c==this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.nb-1)*b):(d=this.segments[c-1],c=this.segments[c],d=d.endTime+(c.startTime-d.endTime)/(c.nb-d.nb-1)*(a-d.nb-1));return new Mt(a,d,b,0,"sq/"+a,void 0,void 0,!0)};g.u(Wz,Dw);g.k=Wz.prototype;g.k.mn=function(){return!0}; g.k.te=function(){return!0}; g.k.Jj=function(a){return!a.F}; g.k.Jl=function(){return[]}; g.k.rj=function(a,b){if("number"===typeof a&&!isFinite(a)){var c=new Yt(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ug,void 0,this.Ug*this.info.wb);return new ew([c],"")}return Dw.prototype.rj.call(this,a,b)}; g.k.Ok=function(a,b){var c=void 0===c?!1:c;if(Vz(this.index,a))return Dw.prototype.Ok.call(this,a,b);var d=this.index.Pe(a),e=b?0:this.Ug*this.info.wb,f=!b;c=new Yt(c?6:3,this,null,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a==this.index.Rb()&&!this.N&&0a.B&&this.index.nh()<=a.B+1}; g.k.gs=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0}; g.k.au=function(){return!1};eA.prototype.getName=function(){return this.name}; eA.prototype.getId=function(){return this.id}; eA.prototype.getIsDefault=function(){return this.isDefault}; eA.prototype.toString=function(){return this.name}; eA.prototype.getName=eA.prototype.getName;eA.prototype.getId=eA.prototype.getId;eA.prototype.getIsDefault=eA.prototype.getIsDefault;g.u(mA,g.O);g.k=mA.prototype;g.k.appendBuffer=function(a,b,c){if(this.Ic.Yr()!==this.appendWindowStart+this.start||this.Ic.lw()!==this.appendWindowEnd+this.start||this.Ic.tc()!==this.timestampOffset+this.start)this.Ic.supports(1),this.Ic.Ay(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Ic.Yn(this.timestampOffset+this.start);this.Ic.appendBuffer(a,b,c)}; g.k.abort=function(){this.Ic.abort()}; g.k.remove=function(a,b){this.Ic.remove(a+this.start,b+this.start)}; g.k.Ay=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b}; g.k.ww=function(){return this.timestampOffset+this.start}; g.k.Yr=function(){return this.appendWindowStart}; g.k.lw=function(){return this.appendWindowEnd}; g.k.Yn=function(a){this.timestampOffset=a}; g.k.tc=function(){return this.timestampOffset}; g.k.Je=function(a){a=this.Ic.Je(void 0===a?!1:a);return Qy(a,this.start,this.end)}; g.k.Ef=function(){return this.Ic.Ef()}; g.k.Hl=function(){return this.Ic.Hl()}; g.k.Zr=function(){return this.Ic.Zr()}; g.k.fz=function(a,b){this.Ic.fz(a,b)}; g.k.supports=function(a){return this.Ic.supports(a)}; g.k.ds=function(){return this.Ic.ds()}; g.k.isView=function(){return!0}; g.k.Jq=function(a,b,c){return this.isActive?this.Ic.Jq(a,b,c):!1}; g.k.zv=function(){return this.Ic.zv()?this.isActive:!1}; g.k.isLocked=function(){return this.Nq&&!this.isActive}; g.k.qb=function(a){return this.Ic.qb(a)+(";vw."+this.start+"-"+this.end)}; g.k.ep=function(){return this.Ic.ep()}; g.k.ba=function(){Js(this.Ic,this.NB);g.O.prototype.ba.call(this)};g.u(qA,g.O);g.k=qA.prototype;g.k.appendBuffer=function(a,b,c){var d;this.sr=!1;c&&(this.Qs=c);b&&(b.isEncrypted()&&(this.rC=this.Qs),3==b.type&&(this.jx=b));(null===(d=this.Yb)||void 0===d?0:d.appendBuffer)?this.Yb.appendBuffer(a):this.Yb?this.Yb.append(a):this.Rd&&this.Rd.webkitSourceAppend(this.id,a)}; g.k.abort=function(){try{this.Yb?this.Yb.abort():this.Rd&&this.Rd.webkitSourceAbort(this.id)}catch(a){}this.Qs=this.jx=null}; g.k.remove=function(a,b){var c;this.sr=!1;(null===(c=this.Yb)||void 0===c?0:c.remove)&&this.Yb.remove(a,b)}; g.k.Yr=function(){var a;return Dx&&this.isVideo?this.appendWindowStart:(null===(a=this.Yb)||void 0===a?void 0:a.appendWindowStart)||0}; g.k.lw=function(){var a;return(null===(a=this.Yb)||void 0===a?void 0:a.appendWindowEnd)||0}; g.k.Ay=function(a,b){this.Yb&&(Dx&&this.isVideo?(this.appendWindowStart=a,this.Yb.appendWindowEnd=b):a>this.Yr()?(this.Yb.appendWindowEnd=b,this.Yb.appendWindowStart=a):(this.Yb.appendWindowStart=a,this.Yb.appendWindowEnd=b))}; g.k.ww=function(){return this.timestampOffset}; g.k.Yn=function(a){Dx?this.timestampOffset=a:this.supports(1)&&(this.Yb.timestampOffset=a)}; g.k.tc=function(){return Dx?this.timestampOffset:this.supports(1)?this.Yb.timestampOffset:0}; g.k.Je=function(a){if(void 0===a?0:a)return this.sr||this.Ef()||(this.mA=this.Je(!1),this.sr=!0),this.mA;try{return this.Yb?this.Yb.buffered:this.Rd?this.Rd.webkitSourceBuffered(this.id):Jy([0],[Infinity])}catch(b){return Jy([],[])}}; g.k.Ef=function(){var a;return(null===(a=this.Yb)||void 0===a?void 0:a.updating)||!1}; g.k.Hl=function(){return this.Qs}; g.k.Zr=function(){return this.rC}; g.k.fz=function(a,b){this.containerType!==a&&(this.supports(4),rA()&&this.Yb.changeType(b));this.containerType=a}; g.k.ds=function(){return this.jx}; g.k.isView=function(){return!1}; g.k.supports=function(a){var b,c,d,e,f;switch(a){case 1:return void 0!==(null===(b=this.Yb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Yb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Yb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Yb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Yb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Yb||!this.Yb.changeType);default:return!1}}; g.k.zv=function(){return!this.Ef()}; g.k.isLocked=function(){return!1}; g.k.qb=function(a){var b,c;a.to=""+this.tc();a.up=""+ +this.Ef();var d=(null===(b=this.Yb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Yb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=Ky(this.Je())}catch(f){}return g.oA(a)}; g.k.ba=function(){this.supports(3)&&(this.Yb.removeEventListener("updateend",this.vj),this.Yb.removeEventListener("error",this.vj));g.O.prototype.ba.call(this)}; g.k.Jq=function(a,b,c){if(!this.supports(2)||this.Ef())return!1;var d=this.Je(),e=Ly(d,a);if(0>e)return!1;try{if(b&&e+1this.K&&this.Aa;this.fa=parseInt(Xz(a,MA(this,"earliestMediaSequence")),10)|| 0;if(b=Date.parse($z(Xz(a,MA(this,"mpdResponseTime")))))this.N=(g.A()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||g.gh(a.getElementsByTagName("Period"),this.GP,this);this.Ia=2;this.V("loaded");RA(this);return this}; g.k.LI=function(a){this.Y=a.xhr.status;this.Ia=3;this.V("loaderror");return jm(a.xhr)}; g.k.refresh=function(){if(1!=this.Ia&&!this.ma()){var a=g.Ed(this.sourceUrl,{start_seq:Qga(this).toString()});pm(PA(this,a),function(){})}}; g.k.resume=function(){RA(this)}; g.k.Gc=function(){if(this.isManifestless&&this.I&&SA(this))return SA(this);var a=this.u,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.Lc()&&(f.K&&(b=!0),h=h.pk(),f.info.isAudio()&&(isNaN(c)||hcDa){N1=cDa;break a}}var dDa=O1.match("("+g.Mb(aDa).join("|")+")");N1=dDa?aDa[dDa[0]]:0}else N1=void 0}var SC=N1,RC=0<=SC;eC.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;lr?c=c||eDa[b]:2.2===SC?c=c||fDa[b]:br()&&(c=c||gDa[b]);return!!c}; eC.prototype.isTypeSupported=function(a){this.da();return this.F?window.cast.receiver.platform.canDisplayType(a):hA(a)}; eC.prototype.disableAv1=function(){this.K=!0}; eC.prototype.da=function(){}; var fDa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},gDa={"application/x-mpegURL":"maybe"},eDa={"application/x-mpegURL":"maybe"};iC.prototype.getLanguageInfo=function(){return this.u}; iC.prototype.toString=function(){return this.u.name}; iC.prototype.getLanguageInfo=iC.prototype.getLanguageInfo;jC.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.u}; jC.prototype.compose=function(a){if(a.C&&mC(a))return AD;if(a.C||mC(this))return a;if(this.C||mC(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.u&&a.u?Math.min(this.u,a.u):this.u||a.u;b=Math.min(b,c);return b===this.B&&c===this.u?this:new jC(b,c,!1,c===this.u?this.reason:a.reason)}; jC.prototype.D=function(a){return a.video?oC(this,a.video.quality):!1}; var EAa=lC("auto","hd1080",!1,"l"),Rxa=lC("auto","large",!1,"l"),AD=lC("auto","auto",!1,"p");lC("small","auto",!1,"p");pC.prototype.El=function(a){a=a||AD;for(var b=g.Fe(this.videoInfos,function(h){return a.D(h)}),c=[],d={},e=0;e'}; g.k.supportsGaplessAudio=function(){return g.iA&&!lr&&74<=Zq()||g.aC&&g.Ud(68)?!0:!1}; g.k.getPlayerType=function(){return this.deviceParams.cplayer}; var wha=["www.youtube-nocookie.com","youtube.googleapis.com"];PD.prototype.add=function(a){this.u=(this.u+1)%this.data.length;this.data[this.u]=a}; PD.prototype.forEach=function(a){for(var b=this.u+1;b=this.start&&(aa&&this.D.start()))}; g.k.Bh=function(){this.F=!0;if(!this.I){for(var a=3;this.F&&a;)this.F=!1,this.I=!0,this.eC(),this.I=!1,a--;this.K().Jb()&&(a=fE(this.u,this.C),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.C)/this.X(),this.D.start(a)))}}; g.k.eC=function(){if(this.started&&!this.ma()){this.D.stop();var a=this.K();g.U(a,32)&&this.P.start();for(var b=g.U(this.K(),2)?0x8000000000000:1E3*this.W(),c=g.U(a,2),d=[],e=[],f=g.q(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(mE(this,e));f=e=null;c?(a=eE(this.u,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=Pha(this.u)):a=this.C<=b&&JL(a)?Oha(this.u,this.C,b):eE(this.u,b); d=d.concat(lE(this,a));e&&(d=d.concat(mE(this,e)));f&&(d=d.concat(lE(this,f)));this.C=b;Qha(this,d)}}; g.k.ba=function(){this.B=[];this.u.u=[];g.C.prototype.ba.call(this)}; (function(a,b){if(ly&&b){var c={},d;for(d in b)b.hasOwnProperty(d)&&(c.Yu=a.prototype[d],c.av=b[d],a.prototype[d]=function(e){return function(f){for(var h=[],l=0;lb&&c.B.pop();a.D.length?a.B=g.bb(g.bb(a.D).info.u):a.C.B.length?a.B=tx(a.C).info:a.B=cz(a);a.B&&bjDa.length)Q1=void 0;else{var R1=iDa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Q1=R1&&6==R1.length?Number(R1[5].replace("_",".")):0}var IH=Q1,IU=0<=IH;IU&&0<=g.Rc.search("Safari")&&g.Rc.search("Version");var Bma={xU:1,NU:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var aZ=16/9,kDa=[.25,.5,.75,1,1.25,1.5,1.75,2],lDa=kDa.concat([3,4,5,6,7,8,9,10,15]);g.u(JF,g.C); JF.prototype.initialize=function(a,b){for(var c=this,d=g.q(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.q(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Ld)for(var h=g.q(Object.keys(f.Ld)),l=h.next();!l.done;l=h.next())if(l=l.value,dC[l])for(var m=g.q(dC[l]),n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new TB(l,n,f.Ld[l],this.experiments),this.D[l]=this.D[l]||{},this.D[l][f.mimeType]=!0}er()&&(this.B["com.youtube.fairplay"]=new TB("fairplay","com.youtube.fairplay","", this.experiments),this.D.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.u=gha(b,this.useCobaltWidevine,g.dA(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.B[p]})}; JF.prototype.da=function(){}; JF.prototype.aa=function(a){return g.Q(this.experiments,a)};g.k=MF.prototype;g.k.Ke=function(){return this.La}; g.k.Hp=function(){return null}; g.k.oB=function(){var a=this.Hp();return a?(a=g.Dp(a.u),Number(a.expire)):NaN}; g.k.wy=function(){}; g.k.Tb=function(){return this.La.Tb()}; g.k.getHeight=function(){return this.La.Ka().height};g.u(RF,MF);RF.prototype.oB=function(){return this.expiration}; RF.prototype.Hp=function(){if(!this.u||this.u.ma()){var a=this.B;kma(a);var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(a.u)var d=a.u;else{d="";for(var e=g.q(a.C),f=e.next();!f.done;f=e.next())if(f=f.value,f.u){if(f.u.getIsDefault()){d=f.u.getId();break a}d||(d=f.u.getId())}}e=g.q(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.u&&f.u.getId()!==d||(c[f.itag]=f);d=g.q(a.B);for(e=d.next();!e.done;e=d.next())if(e=e.value,f=c[e.B]){var h=b,l=h.push,m=a,n="#EXT-X-MEDIA:TYPE=AUDIO,",p="YES", r="audio";if(f.u){r=f.u;var t=r.getId().split(".")[0];t&&(n+='LANGUAGE="'+t+'",');m.u||r.getIsDefault()||(p="NO");r=r.getName()}t="";null!==e&&(t=e.itag.toString());m=OF(m,f.url,t);n=n+('NAME="'+r+'",DEFAULT='+(p+',AUTOSELECT=YES,GROUP-ID="'))+(PF(f,e)+'",URI="'+(m+'"'));l.call(h,n)}d=g.q(a.B);for(e=d.next();!e.done;e=d.next())if(e=e.value,h=c[e.B])f=a,h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(PF(h, e)+'",CLOSED-CAPTIONS=NONE'),1=this.Bx()&&this.Jp();var b=Math.floor(a/(this.columns*this.rows)),c=this.columns*this.rows,d=a%c;a=d%this.columns;d=Math.floor(d/this.columns);var e=this.Jp()+1-c*b;if(eh.getHeight())&&c.push(h)}return c}; nG.prototype.F=function(a,b,c,d){return new g.mG(a,b,c,d)};g.u(pG,g.mG);g.k=pG.prototype;g.k.ow=function(){return this.B.dn()}; g.k.Gt=function(a){var b=this.rows*this.columns*this.I,c=this.B,d=c.Rb();a=c.oh(a);return a>d-b?-1:a}; g.k.Jp=function(){return this.B.Rb()}; g.k.Bx=function(){return this.B.nh()}; g.k.dD=function(a){this.B=a};g.u(qG,nG);qG.prototype.B=function(a,b){return nG.prototype.B.call(this,"$N|"+a,b)}; qG.prototype.F=function(a,b,c){return new pG(a,b,c,this.isLive)};g.u(g.rG,g.O);g.k=g.rG.prototype;g.k.Xg=function(a,b,c){c&&(this.errorCode=null,this.errorDetail="",this.ji=this.errorReason=null);b?(IC(a),this.setData(a),qH(this)&&DG(this)):(a=a||{},this.aa("embeds_enable_updatedata_from_embeds_response_killswitch")||sH(this,a),yG(this,a),uG(this,a),this.V("dataupdated"))}; g.k.setData=function(a){a=a||{};var b=a.errordetail;null!=b&&(this.errorDetail=b);var c=a.errorcode;null!=c?this.errorCode=c:"fail"==a.status&&(this.errorCode="150");var d=a.reason;null!=d&&(this.errorReason=d);var e=a.subreason;null!=e&&(this.ji=e);this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||this.jw());this.Ai=R(this.Ra.Ai,a.livemonitor);sH(this,a);var f=a.raw_player_response;if(!f){var h=a.player_response;h&&(f=JSON.parse(h))}f&&(this.playerResponse=f);if(this.playerResponse){var l= this.playerResponse.annotations;if(l)for(var m=g.q(l),n=m.next();!n.done;n=m.next()){var p=n.value.playerAnnotationsUrlsRenderer;if(p){p.adsOnly&&(this.kr=!0);p.allowInPlaceSwitch&&(this.ov=!0);var r=p.loadPolicy;r&&(this.annotationsLoadPolicy=mDa[r]);var t=p.invideoUrl;t&&(this.Bg=Jv(t));this.Ls=!0;break}}var w=this.playerResponse.attestation;w&&fG(this,w);var x=this.playerResponse.heartbeatParams;if(x){var y=x.heartbeatToken;y&&(this.drmSessionId=x.drmSessionId||"",this.heartbeatToken=y,this.QB= Number(x.intervalMilliseconds),this.RB=Number(x.maxRetries),this.SB=!!x.softFailOnError,this.aC=!!x.useInnertubeHeartbeatsForDrm,this.Rq=!0)}var B=this.playerResponse.messages;B&&yma(this,B);var E=this.playerResponse.multicamera;if(E){var G=E.playerLegacyMulticameraRenderer;if(G){var J=G.metadataList;J&&(this.ED=J,this.nl=Cp(J))}}var I=this.playerResponse.overlay;if(I){var Ca=I.playerControlsOverlayRenderer;if(Ca){var ta=Ca.controlBgHtml;null!=ta?(this.oj=ta,this.jc=!0):(this.oj="",this.jc=!1);if(Ca.mutedAutoplay){var jb= Ca.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(jb&&jb.endScreen){var eb=jb.endScreen.playerMutedAutoplayEndScreenRenderer;eb&&eb.text&&(this.GD=g.T(eb.text))}}else this.mutedAutoplay=!1}}var Xa=this.playerResponse.playabilityStatus;if(Xa){var $d=Xa.backgroundability;$d&&$d.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Xc=Xa.offlineability;Xc&&Xc.offlineabilityRenderer.offlineable&&(this.offlineable=!0);var Gi=Xa.contextParams;Gi&&(this.contextParams=Gi);var Hi=Xa.pictureInPicture; Hi&&Hi.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Xa.playableInEmbed&&(this.allowEmbed=!0);var Ch=Xa.ypcClickwrap;if(Ch){var Ii=Ch.playerLegacyDesktopYpcClickwrapRenderer,nf=Ch.ypcRentalActivationRenderer;if(Ii)this.Pq=Ii.durationMessage||"",this.po=!0;else if(nf){var Dia=nf.durationMessage;this.Pq=Dia?g.T(Dia):"";this.po=!0}}var Rl=Xa.errorScreen;if(Rl){if(Rl.playerLegacyDesktopYpcTrailerRenderer){var se=Rl.playerLegacyDesktopYpcTrailerRenderer;this.Uu=se.trailerVideoId||"";var Eia= Rl.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Ty=Eia&&Eia.ypcTrailerRenderer}else if(Rl.playerLegacyDesktopYpcOfferRenderer)se=Rl.playerLegacyDesktopYpcOfferRenderer;else if(Rl.ypcTrailerRenderer){Ty=Rl.ypcTrailerRenderer;var Fia=Ty.fullVideoMessage;this.Qq=Fia?g.T(Fia):""}se&&(this.Pu=se.itemTitle||"",se.itemUrl&&(this.Qu=se.itemUrl),se.itemBuyUrl&&(this.Nu=se.itemBuyUrl),this.Ou=se.itemThumbnail||"",this.Su=se.offerHeadline||"",this.Sq=se.offerDescription||"",this.Tu=se.offerId||"",this.Ru= se.offerButtonText||"",this.oz=se.offerButtonFormattedText||null,this.Tq=se.overlayDurationMsec||NaN,this.Qq=se.fullVideoMessage||"",this.Dm=!0);if(Ty){var Gia=Ty.unserializedPlayerResponse;if(Gia)this.qo={raw_player_response:Gia};else{var Hia=Ty.playerVars;this.qo=Hia?Bp(Hia):null}this.Dm=!0}}}var Dh=this.playerResponse.playbackTracking;if(Dh){var Iia=a,Jia=dG(Dh.googleRemarketingUrl);Jia&&(this.googleRemarketingUrl=Jia);var Kia=dG(Dh.youtubeRemarketingUrl);Kia&&(this.youtubeRemarketingUrl=Kia); var Lia=dG(Dh.ptrackingUrl);if(Lia){var KG=eG(Lia),Mia=KG.oid;Mia&&(this.JE=Mia);var Nia=KG.pltype;Nia&&(this.KE=Nia);var Oia=KG.ptchn;Oia&&(this.IE=Oia);var Pia=KG.ptk;Pia&&(this.Zt=encodeURIComponent(Pia))}var Qia=dG(Dh.ppvRemarketingUrl);Qia&&(this.ppvRemarketingUrl=Qia);var Ria=dG(Dh.qoeUrl);if(Ria){for(var Uy=g.Dp(Ria),Sia=g.q(Object.keys(Uy)),OV=Sia.next();!OV.done;OV=Sia.next()){var Tia=OV.value,PV=Uy[Tia];Uy[Tia]=Array.isArray(PV)?PV.join(","):PV}var Uia=Uy.cat;Uia&&(this.aq=Uia);var Via= Uy.live;Via&&(this.nx=Via)}var Vy=dG(Dh.remarketingUrl);if(Vy){this.remarketingUrl=Vy;var Wia=eG(Vy);Wia.foc_id&&(this.fd.focEnabled=!0);var Xia=Wia.data;Xia&&(this.fd.rmktEnabled=!0,Xia.engaged&&(this.fd.engaged="1"));this.fd.baseUrl=ud(Vy)+qd(g.sd(5,Vy))}var Yia=dG(Dh.videostatsPlaybackUrl);if(Yia){var Jd=eG(Yia),Zia=Jd.adformat;Zia&&(Iia.adformat=Zia);var $ia=Jd.aqi;$ia&&(Iia.ad_query_id=$ia);var aja=Jd.autoplay;aja&&(this.Lh="1"==aja);var bja=Jd.autonav;bja&&(this.xi="1"==bja);var cja=Jd.delay; cja&&(this.hh=g.md(cja));var dja=Jd.ei;dja&&(this.eventId=dja);"adunit"===Jd.el&&(this.Lh=!0);var eja=Jd.feature;eja&&(this.eq=eja);var fja=Jd.list;fja&&(this.playlistId=fja);var gja=Jd.of;gja&&(this.Wx=gja);var hja=Jd.osid;hja&&(this.osid=hja);var ija=Jd.referrer;ija&&(this.referrer=ija);var jja=Jd.sdetail;jja&&(this.ju=jja);var kja=Jd.ssrt;kja&&(this.uq="1"==kja);var QV=Jd.subscribed;QV&&(this.subscribed="1"==QV,this.fd.subscribed=QV);var lja=Jd.uga;lja&&(this.userGenderAge=lja);var mja=Jd.upt; mja&&(this.Fu=mja);var nja=Jd.vm;nja&&(this.videoMetadata=nja)}var oja=dG(Dh.videostatsWatchtimeUrl);if(oja){var pja=eG(oja).ald;pja&&(this.ir=pja)}var Wy=this.aa("use_player_params_for_passing_desktop_conversion_urls");if(Dh.promotedPlaybackTracking){var Kd=Dh.promotedPlaybackTracking;Kd.startUrls&&(Wy||(this.du=Kd.startUrls[0]),this.eu=Kd.startUrls);Kd.firstQuartileUrls&&(Wy||(this.gy=Kd.firstQuartileUrls[0]),this.hy=Kd.firstQuartileUrls);Kd.secondQuartileUrls&&(Wy||(this.iy=Kd.secondQuartileUrls[0]), this.jy=Kd.secondQuartileUrls);Kd.thirdQuartileUrls&&(Wy||(this.ky=Kd.thirdQuartileUrls[0]),this.ly=Kd.thirdQuartileUrls);Kd.completeUrls&&(Wy||(this.ey=Kd.completeUrls[0]),this.fy=Kd.completeUrls);Kd.engagedViewUrls&&(1=this.K&&(M(Error("durationMs was specified incorrectly with a value of: "+this.K)), this.Qe());this.Pc();this.J.addEventListener("progresssync",this.P)}; g.k.de=function(){WI.prototype.de.call(this);this.Vb("adabandonedreset")}; g.k.Pc=function(){var a=this.J.T();WI.prototype.Pc.call(this);this.u=Math.floor(this.J.getCurrentTime());this.D=this.u+this.K/1E3;g.cD(a)?this.J.xa("onAdMessageChange",{renderer:this.C.u,startTimeSecs:this.u}):$I(this,[new xJ(this.C.u)]);a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.dt(),c=g.Q(this.J.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs;b&&g.rq("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.D, timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)});if(this.I)for(this.N=!0,a=g.q(this.I.listeners),b=a.next();!b.done;b=a.next())if(b=b.value,b.B)if(b.u)S("Received AdNotify started event before another one exited");else{b.u=b.B;c=b.C();b=b.u;zJ(c.Db,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Te(b)}else S("Received AdNotify started event without start requested event");g.U(g.JI(this.J,1),512)&& (a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.dt(),c=g.Q(this.J.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs,b&&g.rq("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.D,timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)}),this.Qe())}; g.k.Qe=function(){WI.prototype.Qe.call(this);this.Vb("adended")}; g.k.Nd=function(a){WI.prototype.Nd.call(this,a);this.Vb("aderror")}; g.k.Vb=function(a){this.J.removeEventListener("progresssync",this.P);this.fh();this.V(a);AJ(this)}; g.k.dispose=function(){this.J.removeEventListener("progresssync",this.P);AJ(this);WI.prototype.dispose.call(this)}; g.k.fh=function(){g.cD(this.J.T())?this.J.xa("onAdMessageChange",{renderer:null,startTimeSecs:this.u}):WI.prototype.fh.call(this)};g.u(BJ,QI);g.u(CJ,WI);CJ.prototype.Zd=function(){$I(this,[new BJ(this.ad.u,this.macros)])}; CJ.prototype.Bf=function(a){NI(this.Ga,a)};g.u(DJ,QI);g.u(EJ,WI);EJ.prototype.Zd=function(){var a=new DJ(this.u.u,this.macros);$I(this,[a])};g.u(FJ,QI);g.u(GJ,WI);GJ.prototype.Zd=function(){this.Pc()}; GJ.prototype.Pc=function(){$I(this,[new FJ(this.u.u,this.macros)]);WI.prototype.Pc.call(this)}; GJ.prototype.Nd=function(a){WI.prototype.Nd.call(this,a);this.Vb("aderror")};g.u(HJ,QI);NJ.prototype.sendAdsPing=function(a){this.F.send(a,RJ(this),{})};g.u(TJ,QI);g.u(UJ,bJ);UJ.prototype.Zd=function(){dJ(this)||this.bl()}; UJ.prototype.bl=function(){$I(this,[this.C])}; UJ.prototype.Bf=function(a){NI(this.Ga,a)};VJ.prototype.get=function(){return this.value}; g.u(WJ,VJ);WJ.prototype.u=function(){return"metadata_type_action_companion_ad_renderer"}; g.u(XJ,VJ);XJ.prototype.u=function(){return"metadata_type_ad_next_params"}; g.u(YJ,VJ);YJ.prototype.u=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.u(ZJ,VJ);ZJ.prototype.u=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.u($J,VJ);$J.prototype.u=function(){return"metadata_type_image_companion_ad_renderer"}; g.u(aK,VJ);aK.prototype.u=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.u(bK,VJ);bK.prototype.u=function(){return"metadata_type_ad_info_ad_metadata"}; g.u(cK,VJ);cK.prototype.u=function(){return"metadata_ad_video_is_listed"}; g.u(dK,VJ);dK.prototype.u=function(){return"metadata_type_ad_placement_config"}; g.u(eK,VJ);eK.prototype.u=function(){return"metadata_type_ad_pod_info"}; g.u(fK,VJ);fK.prototype.u=function(){return"metadata_type_ad_video_id"}; g.u(gK,VJ);gK.prototype.u=function(){return"metadata_type_content_cpn"}; g.u(hK,VJ);hK.prototype.u=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.u(iK,VJ);iK.prototype.u=function(){return"metadata_type_valid_instream_survey_ad_renderer"}; g.u(jK,VJ);jK.prototype.u=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.u(kK,VJ);kK.prototype.u=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.u(lK,VJ);lK.prototype.u=function(){return"metadata_type_linked_in_player_layout_id"}; g.u(mK,VJ);mK.prototype.u=function(){return"metadata_type_linked_in_player_slot_id"}; g.u(nK,VJ);nK.prototype.u=function(){return"metadata_type_player_bytes_callback"}; g.u(oK,VJ);oK.prototype.u=function(){return"metadata_type_player_bytes_callback_ref"}; g.u(pK,VJ);pK.prototype.u=function(){return"metadata_type_sub_layouts"}; g.u(qK,VJ);qK.prototype.u=function(){return"metadata_type_cue_point"}; g.u(rK,VJ);rK.prototype.u=function(){return"metadata_type_video_length_seconds"}; g.u(sK,VJ);sK.prototype.u=function(){return"metadata_type_player_vars"}; g.u(tK,VJ);tK.prototype.u=function(){return"metadata_type_sodar_extension_data"}; g.u(uK,VJ);uK.prototype.u=function(){return"metadata_type_layout_enter_ms"}; g.u(vK,VJ);vK.prototype.u=function(){return"metadata_type_layout_exit_ms"}; g.u(wK,VJ);wK.prototype.u=function(){return"metadata_type_sub_layout_index"}; g.u(xK,VJ);xK.prototype.u=function(){return"metadata_type_dai"}; g.u(yK,VJ);yK.prototype.u=function(){return"metadata_type_ad_intro"}; g.u(zK,VJ);zK.prototype.u=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.u(AK,VJ);AK.prototype.u=function(){return"metadata_type_drift_recovery_ms"}; g.u(BK,VJ);BK.prototype.u=function(){return"metadata_type_fulfilled_layout"}; g.u(CK,VJ);CK.prototype.u=function(){return"metadata_type_ad_break_request_data"}; g.u(DK,VJ);DK.prototype.u=function(){return"metadata_type_ad_break_response_data"}; g.u(EK,VJ);EK.prototype.u=function(){return"metadata_type_remote_slots_data"}; g.u(FK,VJ);FK.prototype.u=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.u(GK,VJ);GK.prototype.u=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.u(HK,VJ);HK.prototype.u=function(){return"metadata_type_instream_video_ad_commands"};g.u(JK,g.O);JK.prototype.getProgressState=function(){return this.C}; JK.prototype.start=function(){this.D=Date.now();IK(this,{current:this.u/1E3,duration:this.B/1E3});this.Ya.start()}; JK.prototype.stop=function(){this.Ya.stop()};g.u(KK,QI);g.u(LK,WI);g.k=LK.prototype;g.k.Zd=function(){this.Pc()}; g.k.Pc=function(){var a=this.D.u;g.cD(this.J.T())?(a=mna(this.I,a),this.J.xa("onAdInfoChange",a),this.K=Date.now(),this.u&&this.u.start()):$I(this,[new KK(a)]);WI.prototype.Pc.call(this)}; g.k.getDuration=function(){return this.D.B}; g.k.yk=function(){WI.prototype.yk.call(this);this.u&&this.u.stop()}; g.k.uj=function(){WI.prototype.uj.call(this);this.u&&this.u.start()}; g.k.de=function(){WI.prototype.de.call(this);this.Vb("adabandoned")}; g.k.zk=function(){WI.prototype.zk.call(this);this.Vb("adended")}; g.k.Nd=function(a){WI.prototype.Nd.call(this,a);this.Vb("aderror")}; g.k.Vb=function(a){this.fh();this.V(a)}; g.k.Bf=function(a){switch(a){case "skip-button":this.zk();break;case "survey-submit":this.Vb("adended")}}; g.k.fh=function(){g.cD(this.J.T())?(this.u&&this.u.stop(),this.J.xa("onAdInfoChange",null)):WI.prototype.fh.call(this)};g.u(MK,QI);g.u(NK,WI);NK.prototype.Zd=function(){this.Pc()}; NK.prototype.Pc=function(){$I(this,[new MK(this.u.u,this.macros)]);WI.prototype.Pc.call(this)}; NK.prototype.de=function(){WI.prototype.de.call(this);this.Vb("adabandoned")}; NK.prototype.Nd=function(a){WI.prototype.Nd.call(this,a);this.Vb("aderror")};g.u(OK,QI);g.u(PK,WI);g.k=PK.prototype;g.k.Zd=function(){0b&&xBa(this.J.app,d,b-a);return d}; g.k.dispose=function(){sI(this.J)&&!this.daiEnabled&&this.J.stopVideo(2);cL(this,"adabandoned");WI.prototype.dispose.call(this)};hL.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.u[b];c?b=c:(c={Tm:null,vC:-Infinity},b=this.u[b]=c);c=a.startSecs+a.u/1E3;if(!(cIH?.1:0,ssa=new AL;g.k=AL.prototype;g.k.Uq=null;g.k.getDuration=function(){return this.duration||0}; g.k.getCurrentTime=function(){return this.currentTime||0}; g.k.Mh=function(){this.src&&(lr&&0b.u.getCurrentTime(2,!1)&&!g.Q(b.u.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=b.B;if(c.vp()){var d=g.Q(b.N.u.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");ml(c.K,d)}b.B.N.seek= !0}0>UI(a,4)&&!(0>UI(a,2))&&(b=this.B.Ga,yI(b)||(AI(b)?KI(b,"resume"):EI(b,"resume")));!g.Q(this.J.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.VI(a,512)&&!g.KL(a.state)&&xL(this.K)}}}; g.k.Oa=function(){if(!this.daiEnabled)return!1;g.Q(this.J.T().experiments,"html5_dai_debug_logging_killswitch")||S("AdPlacementCoordinator handled video data change",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce});return PL(this)}; g.k.sm=function(){}; g.k.resume=function(){this.B&&this.B.ty()}; g.k.lk=function(){this.B&&this.B.Vb("adended")}; g.k.ii=function(){this.lk()}; g.k.sD=function(a){var b=this.Nc;b.C&&g.Q(b.u.T().experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.u.xa("onAdUxUpdate",a)}; g.k.onAdUxClicked=function(a){this.B.Bf(a)}; g.k.hB=function(){return 0}; g.k.jB=function(){return 1}; g.k.Du=function(a){this.daiEnabled&&this.u.N&&this.u.u.start<=a&&a=Math.abs(c-this.u.u.end/1E3)):c=!0;if(c&&!this.u.I.hasOwnProperty("ad_placement_end")){c=g.q(this.u.W);for(var d=c.next();!d.done;d=c.next())QL(d.value);this.u.I.ad_placement_end=!0}c=this.u.F;null!==c&&(sL(this.gh,{cueIdentifier:this.u.C&&this.u.C.identifier,driftRecoveryMs:c,ME:this.u.u.start,yC:UL(this)}),this.u.F=null);b||this.daiEnabled?bN(this.Nc, !0):this.W&&this.Gx()&&this.Ek()?bN(this.Nc,!1,Bna(this)):bN(this.Nc,!1);RL(this,!0)}; g.k.Hw=function(a){gN(this.Nc,a)}; g.k.qs=function(){return this.F}; g.k.isLiveStream=function(){return this.W}; g.k.reset=function(){return new OL(this.Nc,this.J,this.K.reset(),this.u,this.gh,this.Um,this.bk,this.daiEnabled)}; g.k.ba=function(){g.Xf(this.B);this.B=null;g.O.prototype.ba.call(this)};WL.prototype.create=function(a){return(a.B instanceof XH?this.D:a.B instanceof kL?this.C:""===a.K?this.u:this.B)(a)};XL.prototype.clickCommand=function(a){var b=g.dt();if(!a.clickTrackingParams||!b)return!1;mt(this.client,b,g.Ys(a.clickTrackingParams),void 0);return!0};g.u(bM,g.O);g.k=bM.prototype;g.k.Np=function(){return this.u.u}; g.k.Pp=function(){return fI(this.u)}; g.k.Gx=function(){return eI(this.u)}; g.k.yi=function(){return!1}; g.k.Xw=function(){return!1}; g.k.kn=function(){return!1}; g.k.Tw=function(){return!1}; g.k.Js=function(){return!1}; g.k.ex=function(){return!1}; g.k.Op=function(){return!1}; g.k.onAdUxClicked=function(){}; g.k.Gw=function(a){var b=this;if(1!==this.u.D&&2!==this.u.D){var c=[];this.Pp()||(c=nL(a));this.u.D=1;nm(this.I.fetch(this.u.K,{Mo:this.u.C||void 0,Ad:this.u.u}).then(function(d){if(!b.ma()){var e=c;g.Q(b.C.T().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.C.isFullscreen();var f=null;if(g.Q(b.C.T().experiments,"get_midroll_info_use_client_rpc"))f=d;else{var h=null;try{(h=JSON.parse(d.response))&&(f=h)}catch(l){d.response&&(d=d.response,d.startsWith("GIF89")||(l.params= d.substr(0,256),g.jo(l)))}}f=Hna(b,f);d=b.D;d.B&&f.isEmpty&&rL("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",d.u);if(!f.jC&&(b.u.D=2,pL(new mL(b.B),e),!f.isEmpty&&(mF(b.F,f.Zg),g.Q(b.C.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")&&b.Pp())))for(e=g.q(f.Zg),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&S("Detected deferred preroll overlay.",void 0,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||"unknown"})}},function(){pL(new mL(b.B), c); var d=b.D;d.B&&rL("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.u.D&&(b.u.D=0); b.Pp()&&OM(b.B)})}}; g.k.hm=function(){}; g.k.Du=function(){};var Ina=Object.freeze([iJ,nJ,cI,tJ,uJ,TH]);g.u(dM,OL);g.k=dM.prototype;g.k.kB=function(){for(var a=this.D.B,b=g.q(a),c=b.next();!c.done;c=b.next());return a}; g.k.iC=function(){return(0>=this.I?this.D.B:this.D.B.slice(this.I)).some(function(a){return a.Cf()})}; g.k.Qp=function(){return this.N instanceof cI||this.N instanceof tJ}; g.k.Ek=function(){return this.N instanceof TH||this.N instanceof nJ}; g.k.NE=function(){this.daiEnabled?rI(this.J)&&PL(this):eM(this)}; g.k.Zd=function(a){var b=cM(a);this.N&&b&&this.P!==b&&(b?Una(this.Nc):Wna(this.Nc),this.P=b);this.N=a;(g.Q(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_action")||g.Q(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_image")||g.Q(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_shopping"))&&ZM(this.Nc,this);this.daiEnabled&&(this.I=this.D.B.findIndex(function(c){return c===a})); OL.prototype.Zd.call(this,a)}; g.k.kk=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.C&&(g.Xf(this.C),this.C=null);OL.prototype.kk.call(this,a,b)}; g.k.ii=function(){this.I=this.D.B.length;this.C&&this.C.Vb("adended");this.B&&this.B.Vb("adended");this.kk()}; g.k.sm=function(){eM(this)}; g.k.lk=function(){this.im()}; g.k.ac=function(a){OL.prototype.ac.call(this,a);a=a.state;g.U(a,2)&&this.C?this.C.Qe():a.Jb()?(null==this.C&&(a=this.D.D)&&(this.C=this.bk.create(a,lI(jI(this.u)),this.u.u.u),this.C.subscribe("onAdUxUpdate",this.sD,this),YI(this.C)),this.C&&this.C.uj()):a.isError()&&this.C&&this.C.Nd(a.getData().errorCode)}; g.k.im=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(gN(this.Nc,0),a?this.kk(a,b):eM(this))}; g.k.MD=function(){1==this.D.C?this.kk():this.im()}; g.k.onAdUxClicked=function(a){OL.prototype.onAdUxClicked.call(this,a);this.C&&this.C.Bf(a)}; g.k.qs=function(){var a=0>=this.I?this.D.B:this.D.B.slice(this.I);return 0UI(a,16)&&(this.K.forEach(this.Tt,this),this.K.clear())}; g.k.mP=function(a,b){if(this.C&&g.Q(this.u.T().experiments,"html5_dai_debug_bulleit_cue_range")){if(!this.B||this.B.Oa())for(var c=g.q(this.Ca),d=c.next();!d.done;d=c.next())d=d.value,d instanceof dM&&d.u.P[b.Ac]&&d.hm()}else if(this.B&&this.B.Oa(),this.C){c=1E3*this.u.getCurrentTime(1);d=g.q(this.F.keys());for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.start<=c&&cMath.pow(5,2))b.D=!0}; g.k.KL=function(a){if(this.Y){var b=this.Y,c=a.changedTouches;c&&b.K&&1==b.B&&!b.D&&!b.F&&!b.I&&boa(b,c)&&(b.W=a,b.u.start());b.B=a.touches.length;0===b.B&&(b.K=!1,b.D=!1,b.C.length=0);b.F=!1}}; g.k.ba=function(){this.clear(null);this.Hb(this.Va);for(var a=g.q(this.fa),b=a.next();!b.done;b=a.next())this.Hb(b.value);g.qN.prototype.ba.call(this)};g.u(zN,W);zN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&yN(a)||"";g.nc(b)?(g.Q(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.jo(Error("Found AdImage without valid image URL")):(this.B?g.lg(this.element,"backgroundImage","url("+b+")"):oe(this.element,{src:b}),oe(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())}; zN.prototype.clear=function(){this.hide()};g.u(MN,W); MN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.B=b;if(null==b.text&&null==b.icon)g.jo(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.H(this.element,a);null!=b.text&&(a=g.T(b.text),g.nc(a)||(this.element.setAttribute("aria-label",a),this.D=new g.qN({G:"span",L:"ytp-ad-button-text",Z:a}),g.D(this,this.D),this.D.ga(this.element)));null!=b.icon&&(b=LN(b.icon),null!= b&&(this.C=new g.qN({G:"span",L:"ytp-ad-button-icon",S:[b]}),g.D(this,this.C)),this.F?g.De(this.element,this.C.element,0):this.C.ga(this.element))}}; MN.prototype.clear=function(){this.hide()}; MN.prototype.onClick=function(a){var b=this;W.prototype.onClick.call(this,a);voa(this).forEach(function(c){return b.Fa.executeCommand(c,b.macros)}); this.api.onAdUxClicked(this.componentType,this.layoutId)};var upa={seekableStart:0,seekableEnd:1,current:0};g.u(NN,W);NN.prototype.clear=function(){this.dispose()};g.u(QN,NN);g.k=QN.prototype;g.k.init=function(a,b,c){NN.prototype.init.call(this,a,b,c);g.lg(this.D,"stroke-dasharray","0 "+this.C);this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){PN(this);NN.prototype.hide.call(this)}; g.k.show=function(){ON(this);NN.prototype.show.call(this)}; g.k.om=function(){this.hide()}; g.k.Uk=function(){if(this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=a.current/a.seekableEnd*this.C,this.I&&(a=this.C-a),g.lg(this.D,"stroke-dasharray",a+" "+this.C))}};g.u(RN,W);RN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.B=b;this.isTemplated()||g.Ie(this.element,rN(this.B));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?yN(a):"",c=(c=this.api.getVideoData(1))&&c.wq,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()}; RN.prototype.isTemplated=function(){return this.B.isTemplated||!1}; RN.prototype.clear=function(){this.hide()};(function(a,b){function c(f){var h=g.q(f);f=h.next().value;h=ka(h);return a.apply(f,h)} function d(f){f=g.q(f);f.next();f=ka(f);return b(e,f)} b=void 0===b?Lda:b;var e=g.Qa(a);return function(f){for(var h=[],l=0;la&&M(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Aa&&g.H(this.C.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.ea=null==a||0===a?this.B.tD():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.D.init(PI("ad-text"),d,c);(d=this.api.getVideoData(1))&& d.wq&&b.thumbnail?this.I.init(PI("ad-image"),b.thumbnail,c):this.P.hide()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.C.hide();this.D.hide();this.I.hide();PN(this);NN.prototype.hide.call(this)}; g.k.show=function(){ON(this);this.C.show();this.D.show();this.I.show();NN.prototype.show.call(this)}; g.k.om=function(){this.hide()}; g.k.Uk=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.la&&a>=this.ea?(g.Q(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.X.hide(),this.la=!0,this.V("c")):this.D&&this.D.isTemplated()&&(a=Math.max(0,Math.ceil((this.ea-a)/1E3)),a!=this.va&&(SN(this.D,{TIME_REMAINING:String(a)}),this.va=a)))}};g.u(XN,g.C);g.k=XN.prototype;g.k.ba=function(){this.reset();g.C.prototype.ba.call(this)}; g.k.reset=function(){g.Hs(this.F);this.I=!1;this.u&&this.u.stop();this.D.stop();this.B&&(this.B=!1,this.K.play())}; g.k.start=function(){this.reset();this.F.R(this.C,"mouseover",this.QL,this);this.F.R(this.C,"mouseout",this.PL,this);this.u?this.u.start():(this.I=this.B=!0,g.lg(this.C,{opacity:this.P}))}; g.k.QL=function(){this.B&&(this.B=!1,this.K.play());this.D.stop();this.u&&this.u.stop()}; g.k.PL=function(){this.I?this.D.start():this.u&&this.u.start()}; g.k.hA=function(){this.B||(this.B=!0,this.N.play(),this.I=!0)};g.u(YN,NN);g.k=YN.prototype; g.k.init=function(a,b,c){NN.prototype.init.call(this,a,b,c);this.P=b;this.ea=woa(this);if(!b||g.Sb(b))M(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Sb(b.message))M(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=LN(a);null==b?M(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.qN({G:"button",ia:["ytp-ad-skip-button","ytp-button"],S:[{G:"span",L:"ytp-ad-skip-button-icon", S:[b]}]}),g.D(this,this.I),this.I.ga(this.D.element),this.C=new RN(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-skip-button-text"),this.C.init(PI("ad-text"),this.P.message,c),g.D(this,this.C),g.De(this.I.element,this.C.element,0));var d=void 0===d?null:d;c=this.api.T();!(0this.B&&(this.u=this.B,this.Ya.stop(),a=!0);this.D={seekableStart:0,seekableEnd:this.B/1E3,current:this.u/1E3};this.F&&this.F.kc(this.D.current);this.V("b");a&&this.V("a")}; g.k.getProgressState=function(){return this.D};g.u($N,W);g.k=$N.prototype; g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)M(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!= e&&0f)M(Error("timeoutSeconds was specified incorrectly in AdChoiceInterstitialRenderer with a value of: "+f));else if(b.completeCommands)if(b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer){zoa(this,b.text);var m=Aoa(b.defaultButtonChoiceIndex);Coa(this,e,a,m)?(Eoa(this,b.completeCommands,c,f),b&&b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer&&Foa(this,b.adDurationRemaining.timedPieCountdownRenderer, c),b&&b.background&&(c=this.ha("ytp-ad-choice-interstitial"),yoa(c,b.background)),Doa(this,a),this.show(),g.Q(this.api.T().experiments,"self_podding_default_button_focused")&&g.$l(function(){0===m?d.B&&d.B.focus():d.D&&d.D.focus()})):M(Error("AdChoiceInterstitialRenderer failed to initialize buttons."))}else M(Error("AdChoiceInterstitialRenderer requires a timed_pie_countdown_renderer.")); else M(Error("timeoutSeconds was specified yet no completeCommands were specified"))}else M(Error("AdChoiceInterstitialRenderer should have two choices."));else M(Error("AdChoiceInterstitialRenderer has no title."))}; aO.prototype.clear=function(){this.hide()};g.u(bO,W);g.k=bO.prototype;g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a?M(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.B.init(PI("ad-text"),b.text,c),this.show())):M(Error("AdTextInterstitialRenderer has no message AdText."))}; g.k.clear=function(){this.hide()}; g.k.show=function(){Goa(!0);W.prototype.show.call(this)}; g.k.hide=function(){Goa(!1);W.prototype.hide.call(this)}; g.k.onClick=function(){};g.u(cO,g.C);cO.prototype.ba=function(){this.B&&g.Io(this.B);this.u.clear();dO=null;g.C.prototype.ba.call(this)}; cO.prototype.register=function(a,b){b&&this.u.set(a,b)}; var dO=null;g.u(fO,W); fO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?M(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new MN(this.api,this.Fa,this.layoutId,this.u),g.D(this,this.button),this.button.init(PI("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.T(a)),this.button.ga(this.element),this.I&&!g.cn(this.button.element,"ytp-ad-clickable")&&g.H(this.button.element,"ytp-ad-clickable"), a&&(this.C=new g.qN({G:"div",L:"ytp-ad-hover-text-container"}),this.F&&(b=new g.qN({G:"div",L:"ytp-ad-hover-text-callout"}),b.ga(this.C.element),g.D(this,b)),g.D(this,this.C),this.C.ga(this.element),b=eO(a),g.De(this.C.element,b,0)),this.show())}; fO.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();W.prototype.hide.call(this)}; fO.prototype.show=function(){this.button&&this.button.show();W.prototype.show.call(this)};g.u(gO,W);g.k=gO.prototype;g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?M(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.jo(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.jo(Error("AdFeedbackRenderer.title was not set.")),Noa(this,b)):M(Error("AdFeedbackRenderer.reasons were not set."))}; g.k.clear=function(){So(this.F);So(this.P);this.D.length=0;this.hide()}; g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();W.prototype.hide.call(this);this.I&&this.I.focus()}; g.k.show=function(){this.B&&this.B.show();this.C&&this.C.show();this.I=document.activeElement;W.prototype.show.call(this);this.F.focus()}; g.k.xD=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.V("f");this.hide()}; g.k.jP=function(){this.hide()}; hO.prototype.Na=function(){return this.u.element}; hO.prototype.isChecked=function(){return this.C.checked};g.u(iO,W);g.k=iO.prototype;g.k.hide=function(){W.prototype.hide.call(this);this.D&&this.D.focus()}; g.k.show=function(){this.D=document.activeElement;W.prototype.show.call(this);this.F.focus()}; g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?M(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?M(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Ooa(this,b):M(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.Hs(this.B);this.hide()}; g.k.Nx=function(){this.hide()}; g.k.Hx=function(){var a=this.C.cancelEndpoint;a&&this.Fa.executeCommand(a,this.macros);this.hide()}; g.k.Ox=function(){var a=this.C.confirmNavigationEndpoint||this.C.confirmEndpoint;a&&this.Fa.executeCommand(a,this.macros);this.hide()};g.u(jO,iO);jO.prototype.Nx=function(a){iO.prototype.Nx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; jO.prototype.Hx=function(a){iO.prototype.Hx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; jO.prototype.Ox=function(a){iO.prototype.Ox.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.V("g")};g.u(kO,W);g.k=kO.prototype; g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)M(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.jo(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.B=new MN(this.api,this.Fa,this.layoutId,this.u,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.D(this,this.B), this.B.init(PI("button"),a,this.macros),this.B.ga(this.element);b.title&&(a=g.T(b.title),this.ya("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c=a&&M(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.I=null==a||0===a?0:a+1E3*this.B.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.C.init(PI("ad-text"),d,c);this.C.ga(this.D.element);this.P.show(100);this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){gpa(this,!1);NN.prototype.hide.call(this);this.D.hide();this.C.hide();PN(this)}; g.k.show=function(){gpa(this,!0);NN.prototype.show.call(this);ON(this);this.D.show();this.C.show()}; g.k.om=function(){this.hide()}; g.k.Uk=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.X&&a>=this.I?(this.P.hide(),this.X=!0):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.I-a)/1E3)),a!=this.ea&&(SN(this.C,{TIME_REMAINING:String(a)}),this.ea=a)))}};g.u(GO,NN);g.k=GO.prototype; g.k.init=function(a,b,c){NN.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Sb(a)?null:a){this.I=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.dA(this.api.T().experiments,"preskip_button_style_ads_backend")&&aD(this.api.T());this.C=new VN(this.api,this.Fa,this.layoutId,this.u,this.B,d);this.C.init(PI("preskip-component"),a,c);WN(this.C);g.D(this,this.C);this.C.ga(this.element); g.Q(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")&&this.C.subscribe("c",this.gO,this)}else b.skipOffsetMilliseconds&&(this.I=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Sb(b)?null:b;null==b?M(Error("SkipButtonRenderer was not set in player response.")):(this.D=new YN(this.api,this.Fa,this.layoutId,this.u,this.B),this.D.init(PI("skip-button"),b,c),g.D(this,this.D),this.D.ga(this.element),this.show())}; g.k.show=function(){this.P&&this.D?this.D.show():this.C&&this.C.show();ON(this);NN.prototype.show.call(this)}; g.k.om=function(){}; g.k.clear=function(){this.C&&this.C.clear();this.D&&this.D.clear();PN(this);NN.prototype.hide.call(this)}; g.k.hide=function(){this.C&&this.C.hide();this.D&&this.D.hide();PN(this);NN.prototype.hide.call(this)}; g.k.gO=function(){HO(this,!0)}; g.k.Uk=function(){g.Q(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.C||1E3*this.B.getProgressState().current>=this.I&&HO(this,!0):1E3*this.B.getProgressState().current>=this.I&&HO(this,!0)};g.u(IO,W);IO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new GO(this.api,this.Fa,this.layoutId,this.u,this.B),b.ga(this.C),b.init(PI("skip-button"),a.skipAdRenderer,this.macros),g.D(this,b)));this.show()};g.u(LO,NN);g.k=LO.prototype;g.k.init=function(a,b,c){NN.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.jo(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.C=new RN(this.api,this.Fa,this.layoutId,this.u);this.C.init(PI("ad-text"),a,{});this.C.ga(this.element);g.D(this,this.C)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){PN(this);NN.prototype.hide.call(this)}; g.k.om=function(){this.hide()}; g.k.Uk=function(){if(null!=this.B){var a=this.B.getProgressState();if(null!=a&&null!=a.current&&this.C){a=(void 0!==this.D?this.D:this.B instanceof ZN?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.JO(a);SN(this.C,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}}; g.k.show=function(){ON(this);NN.prototype.show.call(this)};g.u(MO,RN);MO.prototype.onClick=function(a){RN.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.u(NO,NN);g.k=NO.prototype; g.k.init=function(a,b,c){NN.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0=this.ea&&(PN(this),g.en(this.element,"ytp-flyout-cta-inactive"))}}; g.k.om=function(){this.clear()}; g.k.clear=function(){this.hide()}; g.k.show=function(){this.C&&this.C.show();NN.prototype.show.call(this)}; g.k.hide=function(){this.C&&this.C.hide();NN.prototype.hide.call(this)};g.u(OO,W);g.k=OO.prototype; g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)M(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)M(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.H(this.D,a)}a={};b.defaultText? (c=g.T(b.defaultText),g.nc(c)||(a.buttonText=c,this.B.setAttribute("aria-label",c))):g.Cg(this.ea,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.B.hasAttribute("aria-label")||this.X.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=LN(b.defaultIcon),this.ya("untoggledIconTemplateSpec",c),b.toggledIcon?(this.P=!0,c=LN(b.toggledIcon),this.ya("toggledIconTemplateSpec",c)):(g.Cg(this.I,!0),g.Cg(this.F,!1)),g.Cg(this.B,!1)):g.Cg(this.X,!1);g.Sb(a)||this.update(a);b.isToggled&&(g.H(this.D, "ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));PO(this);this.R(this.element,"change",this.vD);this.show()}}; g.k.onClick=function(a){0a)M(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){spa(this.F,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);spa(this.P, b.brandImage);g.Ie(this.X,g.T(b.text));this.B=new MN(this.api,this.Fa,this.layoutId,this.u,["ytp-ad-survey-interstitial-action-button"]);g.D(this,this.B);this.B.ga(this.I);this.B.init(PI("button"),b.ctaButton.buttonRenderer,c);this.B.show();var e=b.timeoutCommands;this.D=new ZN(1E3*a);this.D.subscribe("a",function(){d.C.hide();e.forEach(function(f){return d.Fa.executeCommand(f,c)}); d.Fa.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}); g.D(this,this.D);this.R(this.element,"click",function(f){return rpa(d,f,b)}); this.C.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.Fa.executeCommand(f,c)})}else M(Error("SurveyTextInterstitialRenderer has no landscape background image.")); else M(Error("SurveyTextInterstitialRenderer has no brandImage."));else M(Error("SurveyTextInterstitialRenderer has no button."));else M(Error("SurveyTextInterstitialRenderer has no text."));else M(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; gP.prototype.clear=function(){this.hide()}; gP.prototype.show=function(){tpa(!0);W.prototype.show.call(this)}; gP.prototype.hide=function(){tpa(!1);W.prototype.hide.call(this)};g.u(hP,g.O);g.k=hP.prototype;g.k.tD=function(){return 1E3*this.u.getDuration(this.C,!1)}; g.k.stop=function(){this.D&&this.B.Hb(this.D)}; g.k.uD=function(){var a=this.u.getProgressState(this.C);this.F={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.Q(this.u.T().experiments,"halftime_ux_killswitch")?a.current:this.u.getCurrentTime(this.C,!1)};this.V("b")}; g.k.getProgressState=function(){return this.F}; g.k.JL=function(a){g.VI(a,2)&&this.V("a")};var wDa="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.u(jP,hN); jP.prototype.C=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!wDa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.D,f=c.layoutId,h=c.u;h=void 0===h?{}:h;switch(d){case "invideo-overlay":a=new zO(e,a,f,h);break;case "persisting-overlay":a=new IO(e,a,f,h,new hP(e));break;case "player-overlay":a=new XO(e,a,f,h,new hP(e));break;case "survey":a=new fP(e,a,f,h);break;case "ad-action-interstitial":a=new $N(e,a,f,h);break;case "ad-text-interstitial":a=new bO(e,a,f,h);break; case "survey-interstitial":a=new gP(e,a,f,h);break;case "ad-choice-interstitial":a=new aO(e,a,f,h);break;case "ad-message":a=new FO(e,a,f,h,new hP(e,1));break;default:a=null}if(!a){g.jo(Error("No UI component returned from ComponentFactory for type: "+d));break}Ob(this.B,b)?g.jo(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);this.F.append(a.jb);break;case 2:b=vpa(this,a);if(null==b)break;b.bind(c);break;case 3:c=vpa(this,a),null!=c&&(g.Xf(c),Ob(this.B,b)?(c=this.B,b in c&& delete c[b]):g.jo(Error("Ad UI component does not exist: "+b)))}}}; jP.prototype.ba=function(){g.Yf(Object.values(this.B));this.B={};hN.prototype.ba.call(this)};var xDa={Y_:"replaceUrlMacros",gW:"isExternalShelfAllowedFor"};kP.prototype.mh=function(){return"adLifecycleCommand"}; kP.prototype.handle=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.$l(function(){b.controller.sm()}); break;case "END_LINEAR_AD":g.$l(function(){b.controller.lk()}); break;case "END_LINEAR_AD_PLACEMENT":g.$l(function(){b.controller.ii()}); break;case "FILL_INSTREAM_SLOT":g.$l(function(){a.elementId&&b.controller.Nr(a.elementId)}); break;case "FILL_ABOVE_FEED_SLOT":g.$l(function(){a.elementId&&b.controller.Wo(a.elementId)}); break;case "CLEAR_ABOVE_FEED_SLOT":g.$l(function(){b.controller.Io()})}}; kP.prototype.ri=function(a){this.handle(a)};lP.prototype.mh=function(){return"adPlayerControlsCommand"}; lP.prototype.handle=function(a){var b=this.Ko();switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var c=rI(b.u)&&b.B.Ek()?b.u.getDuration(2):0;if(0>=c)break;b.seekTo(g.Wd(c-(Number(a.seekOffsetMilliseconds)||0)/1E3,0,c));break;case "AD_PLAYER_CONTROLS_ACTION_RESUME":b.resume()}}; lP.prototype.ri=function(a){this.handle(a)};mP.prototype.mh=function(){return"clearCueRangesCommand"}; mP.prototype.handle=function(){var a=this.Ko();g.$l(function(){oL(a,Array.from(a.I))})}; mP.prototype.ri=function(a){this.handle(a)};nP.prototype.mh=function(){return"muteAdEndpoint"}; nP.prototype.handle=function(a){xpa(this,a)}; nP.prototype.ri=function(a,b){xpa(this,a,b)};oP.prototype.mh=function(){return"openPopupAction"}; oP.prototype.handle=function(){}; oP.prototype.ri=function(a){this.handle(a)};pP.prototype.mh=function(){return"pingingEndpoint"}; pP.prototype.handle=function(){}; pP.prototype.ri=function(a){this.handle(a)};qP.prototype.mh=function(){return"urlEndpoint"}; qP.prototype.handle=function(a,b){var c=g.Sm(a.url,b);g.TK(c)}; qP.prototype.ri=function(){S("Trying to handle UrlEndpoint with no macro in controlflow")};rP.prototype.mh=function(){return"adPingingEndpoint"}; rP.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.yo.send(a,b,c)}; rP.prototype.ri=function(a,b){Yqa(this.Ea.get(),a,b)};sP.prototype.mh=function(){return"changeEngagementPanelVisibilityAction"}; sP.prototype.handle=function(a){this.J.xa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})}; sP.prototype.ri=function(a){this.handle(a)};tP.prototype.mh=function(){return"loggingUrls"}; tP.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Kh.send(d.baseUrl,b,c,d.headers)}; tP.prototype.ri=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())d=d.value,Yqa(this.Ea.get(),d.baseUrl,b,d.headers)};g.u(zpa,g.C);var Lpa=new Map([[0,"normal"],[1,"skipped"],[2,"muted"],[6,"user_input_submitted"]]);var Epa=new Map([["opportunity_type_ad_break_service_response_received","OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED"],["opportunity_type_live_stream_break_signal","OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL"],["opportunity_type_player_bytes_media_layout_entered","OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED"],["opportunity_type_player_response_received","OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED"],["opportunity_type_throttled_ad_break_request_slot_reentry","OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY"]]), xP=new Map([["trigger_type_on_new_playback_after_content_video_id","TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID"],["trigger_type_on_different_slot_id_enter_requested","TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED"],["trigger_type_slot_id_entered","TRIGGER_TYPE_SLOT_ID_ENTERED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_scheduled","TRIGGER_TYPE_SLOT_ID_SCHEDULED"],["trigger_type_slot_id_fulfilled_empty", "TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY"],["trigger_type_slot_id_fulfilled_non_empty","TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY"],["trigger_type_layout_id_entered","TRIGGER_TYPE_LAYOUT_ID_ENTERED"],["trigger_type_on_different_layout_id_entered","TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED"],["trigger_type_layout_id_exited","TRIGGER_TYPE_LAYOUT_ID_EXITED"],["trigger_type_layout_exited_for_reason","TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON"],["trigger_type_on_layout_self_exit_requested","TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED"], ["trigger_type_on_element_self_enter_requested","TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED"],["trigger_type_before_content_video_id_started","TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED"],["trigger_type_after_content_video_id_ended","TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED"],["trigger_type_media_time_range","TRIGGER_TYPE_MEDIA_TIME_RANGE"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED","TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED","TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED"], ["trigger_type_close_requested","TRIGGER_TYPE_CLOSE_REQUESTED"],["trigger_type_time_relative_to_layout_enter","TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER"],["trigger_type_not_in_media_time_range","TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE"],["trigger_type_survey_submitted","TRIGGER_TYPE_SURVEY_SUBMITTED"],["trigger_type_skip_requested","TRIGGER_TYPE_SKIP_REQUESTED"],["trigger_type_on_opportunity_received","TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED"],["trigger_type_layout_id_active_and_slot_id_has_exited", "TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED"],["trigger_type_playback_minimized","TRIGGER_TYPE_PLAYBACK_MINIMIZED"]]),Qqa=new Map([[5,"TRIGGER_CATEGORY_SLOT_ENTRY"],[4,"TRIGGER_CATEGORY_SLOT_FULFILLMENT"],[3,"TRIGGER_CATEGORY_SLOT_EXPIRATION"],[0,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL"],[1,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"],[2,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"],[6,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED"]]),Cpa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"], ["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),Apa=new Map([["normal",{jq:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Bq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{jq:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Bq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],["muted",{jq:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED", Bq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{jq:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Bq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{jq:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Bq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}]]);g.u(CP,g.C);g.k=CP.prototype;g.k.Ng=function(a,b){qQ(this.Db,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.Ng(a,b)}; g.k.Te=function(a){if(GP(this.u,a)){zJ(this.Db,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.u.Te(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.Te(a);Hpa(this,a)}}; g.k.Ue=function(a){if(GP(this.u,a)){zJ(this.Db,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.u.Ue(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.Ue(a);GP(this.u,a)&&HP(this.u,a).F&&EP(this,a,!1)}}; g.k.jd=function(a,b){if(GP(this.u,a)){IP(this.Db,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.jd(a,b)}}; g.k.kd=function(a,b,c){if(GP(this.u,a)){IP(this.Db,Bpa(c),a,b);this.u.kd(a,b);for(var d=g.q(this.B),e=d.next();!e.done;e=d.next())e.value.kd(a,b,c);(c=UP(this.u,a))&&b.layoutId===c.layoutId&&Spa(this,a,!1)}}; g.k.Gf=function(a,b,c){S(c,a,b,void 0,c.ll);EP(this,a,!0)}; g.k.ba=function(){var a=Tpa(this.u);a=g.q(a);for(var b=a.next();!b.done;b=a.next())EP(this,b.value,!1);g.C.prototype.ba.call(this)};XP.prototype.isActive=function(){switch(this.u){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}}; XP.prototype.gx=function(){switch(this.D){case "fill_requested":return!0;default:return!1}}; XP.prototype.fx=function(){switch(this.u){case "exit_requested":return!0;default:return!1}}; XP.prototype.ax=function(){switch(this.u){case "rendering_stop_requested":return!0;default:return!1}};g.u(JP,Va);g.u(YP,g.C);g.k=YP.prototype;g.k.tg=function(a){a=HP(this,a);"not_scheduled"!==a.u&&VP(a.slot,a.u,"onSlotScheduled");a.u="scheduled"}; g.k.Xo=function(a){a=HP(this,a);a.D="fill_requested";a.I.Xo()}; g.k.Te=function(a){a=HP(this,a);"enter_requested"!==a.u&&VP(a.slot,a.u,"onSlotEntered");a.u="entered"}; g.k.Om=function(a){HP(this,a).Om=!0}; g.k.gx=function(a){return HP(this,a).gx()}; g.k.fx=function(a){return HP(this,a).fx()}; g.k.ax=function(a){return HP(this,a).ax()}; g.k.Ue=function(a){a=HP(this,a);"exit_requested"!==a.u&&VP(a.slot,a.u,"onSlotExited");a.u="scheduled"}; g.k.kd=function(a,b){var c=HP(this,a);null!=c.layout&&c.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==c.u&&VP(c.slot,c.u,"onLayoutExited"),c.u="entered")};g.u(Xpa,g.C);g.u(aQ,g.C);aQ.prototype.get=function(){this.ma()&&S("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.u});this.u||(this.u=this.B());return this.u};g.u(pQ,g.C);g.u(tQ,g.C);tQ.prototype.ut=function(){}; tQ.prototype.rx=function(a){var b=this,c=this.u.get(a);c&&(this.u["delete"](a),this.yb.get().removeCueRange(a),lF(this.rb.get(),"opportunity_type_throttled_ad_break_request_slot_reentry",function(){var d=b.fb.get();d=wQ(d.Sa.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Xb:c.Xb?Mqa(c.slotId,d,c.Xb):void 0,Ce:Nqa(c.slotId,d,c.Ce),tf:Nqa(c.slotId,d,c.tf)})]},c.slotId))}; tQ.prototype.Gi=function(){for(var a=g.q(this.u.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.yb.get().removeCueRange(b);this.u.clear()}; tQ.prototype.cm=function(){};g.u(uQ,g.C);g.k=uQ.prototype;g.k.tg=function(){}; g.k.Pi=function(){}; g.k.Te=function(){}; g.k.Jh=function(){}; g.k.Ue=function(){}; g.k.Ni=function(){}; g.k.Oi=function(){}; g.k.Ih=function(a,b){this.B.has(a)||this.B.set(a,new Set);this.B.get(a).add(b)}; g.k.Li=function(a,b){this.u.has(a)&&this.u.get(a)===b&&S("Unscheduled a Layout that is currently entered.",a,b);if(this.B.has(a)){var c=this.B.get(a);c.has(b)?(c["delete"](b),0===c.size&&this.B["delete"](a)):S("Trying to unscheduled a Layout that was not scheduled.",a,b)}else S("Trying to unscheduled a Layout that was not scheduled.",a,b)}; g.k.jd=function(a,b){this.u.set(a,b)}; g.k.kd=function(a){this.u["delete"](a)}; g.k.Ng=function(){};HQ.prototype.clone=function(a){var b=this;return new HQ(function(){return b.triggerId},a)};IQ.prototype.clone=function(a){var b=this;return new IQ(function(){return b.triggerId},a)};JQ.prototype.clone=function(a){var b=this;return new JQ(function(){return b.triggerId},a)};KQ.prototype.clone=function(a){var b=this;return new KQ(function(){return b.triggerId},a)};LQ.prototype.clone=function(a){var b=this;return new LQ(function(){return b.triggerId},a)};g.u(OQ,g.C);OQ.prototype.logEvent=function(a){qQ(this,a)};g.u(QQ,g.C);QQ.prototype.addListener=function(a){this.listeners.push(a)}; QQ.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; QQ.prototype.B=function(){g.Q(this.za.get().J.T().experiments,"html5_mark_internal_abandon_in_pacf")&&this.u&&Sqa(this,this.u)};g.u(RQ,g.C);RQ.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?2:f;h=void 0===h?1:h;this.u.has(a)?S("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new Tqa(a,b,c,d,f),this.u.set(a.id,{Ad:a,listener:e,mo:h}),g.eN(this.J,[a],h))}; RQ.prototype.removeCueRange=function(a){var b=this.u.get(a);b?(g.fN(this.J.app,[b.Ad],b.mo),this.u["delete"](a)):S("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; RQ.prototype.C=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.ut(a.id)}; RQ.prototype.D=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.rx(a.id)}; g.u(Tqa,g.ZD);VQ.prototype.C=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.LC()}; VQ.prototype.B=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.KC()}; VQ.prototype.D=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.MC()};g.u(XQ,nI);XQ.prototype.kf=function(){return this.u()}; XQ.prototype.B=function(){return this.C()};g.u(g.cR,Fs);g.cR.prototype.R=function(a,b,c,d,e){return Fs.prototype.R.call(this,a,b,c,d,e)};g.u(dR,g.C);g.k=dR.prototype;g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.nP=function(a,b,c){var d=this.qr(b,c);this.u=d;this.listeners.forEach(function(e){e.mE(d)}); a=nF(this,1);a.clientPlaybackNonce!==this.contentCpn&&(this.contentCpn=a.clientPlaybackNonce,this.listeners.forEach(function(){}))}; g.k.qr=function(a,b){var c,d,e,f,h=a.author,l=a.clientPlaybackNonce,m=a.isListed,n=a.Ac,p=a.title,r=a.Wf,t=a.bf,w=a.isMdxPlayback,x=a.Ag,y=a.mdxEnvironment,B=a.xi,E=a.Lh,G=a.videoId||"",J=a.sf||"",I=a.zg||"",Ca=a.jj||void 0;n=this.Jc.get().u.get(n)||{layoutId:null,slotId:null};var ta=this.J.getVideoData(1),jb=ta.Kg(),eb=ta.getPlayerResponse();ta=1E3*this.J.getDuration(b);var Xa=1E3*this.J.getDuration(1);eb=(null===(d=null===(c=null===eb||void 0===eb?void 0:eb.playerConfig)||void 0===c?void 0:c.daiConfig)|| void 0===d?void 0:d.enableDai)||(null===(f=null===(e=null===eb||void 0===eb?void 0:eb.playerConfig)||void 0===e?void 0:e.daiConfig)||void 0===f?void 0:f.enableServerStitchedDai)||!1;return Object.assign(Object.assign({},n),{videoId:G,author:h,clientPlaybackNonce:l,playbackDurationMs:ta,EA:Xa,daiEnabled:eb,isListed:m,Kg:jb,sf:J,title:p,zg:I,Wf:r,bf:t,jj:Ca,isMdxPlayback:w,Ag:x,mdxEnvironment:y,xi:B,Lh:E})}; g.k.ba=function(){this.listeners.length=0;this.u=null;g.C.prototype.ba.call(this)};g.u(eR,g.C);g.k=eR.prototype;g.k.Gi=function(){var a=this;this.u=ab(function(){a.J.ma()||g.IT(a.J,"ad",1)})}; g.k.cm=function(){}; g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.pauseVideo=function(){this.J.pauseVideo()}; g.k.getVolume=function(){return this.J.getVolume()}; g.k.isMuted=function(){return this.J.isMuted()}; g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType()}; g.k.getPlayerState=function(a){return this.J.getPlayerState(a)}; g.k.isFullscreen=function(){return this.J.isFullscreen()}; g.k.oO=function(){if(2===this.J.getPresentingPlayerType())for(var a=TP(this,2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Fn(a)}; g.k.fO=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Hn(a)}; g.k.bK=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.un(a)}; g.k.cK=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.vn()}; g.k.Mi=function(){for(var a=this.J.app.visibility.u,b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Mi(a)}; g.k.Ta=function(){for(var a=g.aF(this.J).getPlayerSize(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.En(a)};g.u(era,g.C);fR.prototype.executeCommand=function(a,b){IM(this.u(),a,b)};hR.prototype.Xo=function(){var a=this;hra(this.B,function(){var b=wO(a.slot.ua,"metadata_type_ad_break_request_data");return a.cd.get().fetch({uG:b.getAdBreakUrl,NA:new g.ZD(b.mF,b.lF),Mo:wO(a.slot.ua,"metadata_type_cue_point")})},function(b){b=b.Zg; (!b.length||2<=b.length)&&S("Unexpected ad placement renderers length",a.slot,null,{length:b.length})})}; hR.prototype.u=function(){ira(this.B)};iR.prototype.Xo=function(){var a=this;hra(this.B,function(){var b=wO(a.slot.ua,"metadata_type_ad_break_request_data");return a.cd.get().fetch({uG:b.getAdBreakUrl,NA:new g.ZD(b.mF,b.lF)})})}; iR.prototype.u=function(){ira(this.B)};sQ.prototype.Xo=function(){Ipa(this.callback,this.slot,wO(this.slot.ua,"metadata_type_fulfilled_layout"))}; sQ.prototype.u=function(){FP(this.callback,this.slot,new rF("Got CancelSlotFulfilling request for "+this.slot.Za+" in DirectFulfillmentAdapter."))};g.u(jR,jra);jR.prototype.u=function(a,b){if(rQ(b,{qe:["metadata_type_ad_break_request_data","metadata_type_cue_point"],Za:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new hR(a,b,this.cd,this.zb,this.bb,this.za);if(rQ(b,{qe:["metadata_type_ad_break_request_data"],Za:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new iR(a,b,this.cd,this.zb,this.bb,this.za);throw new rF("Unsupported slot with type: "+b.Za+" and client metadata: "+wP(b.ua)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.u(kR,jra);kR.prototype.u=function(a,b){throw new rF("Unsupported slot with type: "+b.Za+" and client metadata: "+wP(b.ua)+" in DefaultFulfillmentAdapterFactory.");};g.k=kra.prototype;g.k.Ne=function(){return this.slot}; g.k.Md=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Gf(this.slot,a,new JP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=wO(a.ua,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.Za?(this.callback.jd(this.slot,a),tia(this.u,this.slot,b)):S("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen", this.slot,a)}}; g.k.Tg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new JP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.kd(this.slot,a,b)};mR.prototype.u=function(a,b,c,d){if(lR(d,{qe:["metadata_type_ad_break_response_data"],og:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new kra(a,c,d,this.B);throw new JP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wP(d.ua)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.k=lra.prototype;g.k.Ne=function(){return this.slot}; g.k.Md=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new JP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.jd(this.slot,a),rO(this.Ga,"impression"),xR(this.u,a.layoutId))}; g.k.Tg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new JP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.kd(this.slot,a,b)};nR.prototype.u=function(a,b,c,d){if(lR(d,mra()))return new lra(a,c,d,this.Ea,this.B);throw new JP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wP(d.ua)+" in ForecastingLayoutRenderingAdapterFactory.");};g.u(oR,g.O);g.k=oR.prototype;g.k.Ne=function(){return this.slot}; g.k.Md=function(){return this.layout}; g.k.init=function(){this.u.get().addListener(this)}; g.k.release=function(){this.u.get().removeListener(this);this.dispose()}; g.k.np=function(){}; g.k.Fw=function(){}; g.k.Ew=function(){}; g.k.zs=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new JP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),Dra(a,this.Yj,1))}; g.k.Tg=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Gf(this.slot,a,new JP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.u.get();Dra(c,this.Yj,3);this.Yj=[];this.callback.kd(this.slot,a,b)}}; g.k.ba=function(){this.u.get().removeListener(this);g.O.prototype.ba.call(this)};g.u(rR,oR);g.k=rR.prototype;g.k.Bf=function(a,b){qR(this.zo,a,this.Dd.get().u,this.Ea.get(),this.jh,this.Ei,this.Ne(),this.Md(),b)}; g.k.startRendering=function(a){pR(this.Ga,this.Ne(),this.Md(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new fJ(b,c,d,e,f)},this.Yj); oR.prototype.startRendering.call(this,a)}; g.k.jd=function(a,b){b.layoutId===this.layout.layoutId?rO(this.Ga,"impression"):this.Ei===b.layoutId&&(null===this.jh?this.jh=ZQ(this.Ea.get()):S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.kd=function(){}; g.k.tg=function(){}; g.k.Pi=function(){}; g.k.Jh=function(){}; g.k.Te=function(){}; g.k.Ue=function(){}; g.k.Ni=function(){}; g.k.Oi=function(){}; g.k.Ih=function(){}; g.k.Li=function(){}; g.k.Ng=function(){}; g.k.ba=function(){this.be().B["delete"](this);oR.prototype.ba.call(this)};g.u(sR,oR);sR.prototype.init=function(){oR.prototype.init.call(this);var a=wO(this.layout.ua,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.sd};this.Yj.push(new XK(a,this.layout.layoutId,wO(this.layout.ua,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b))}; sR.prototype.startRendering=function(a){oR.prototype.startRendering.call(this,a);this.callback.jd(this.slot,a)}; sR.prototype.Bf=function(a){a:{var b=this.Dd.get();var c=this.Ei;b=g.q(b.u.values());for(var d=b.next();!d.done;d=b.next())if(d.value.layoutId===c){c=!0;break a}c=!1}if(c)switch(a){case "visit-advertiser":this.Ea.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||(a=this.ra.get(),2===a.J.getPlayerState(2)&&a.J.playVideo());break;case "ad-info-icon-button":(this.B=2===this.ra.get().J.getPlayerState(2))|| this.ra.get().pauseVideo();break;case "visit-advertiser":this.ra.get().pauseVideo();wO(this.layout.ua,"metadata_type_player_bytes_callback").oy();break;case "skip-button":a=wO(this.layout.ua,"metadata_type_player_bytes_callback"),a.X&&a.zE()}}; sR.prototype.ba=function(){oR.prototype.ba.call(this)};uR.prototype.u=function(a,b,c,d){if(a=tR(a,c,d,this.Pb,this.ra,this.Ea,this.Dd))return a;throw new JP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wP(d.ua)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u(vR,g.C);vR.prototype.startRendering=function(a){if(a.layoutId!==this.Md().layoutId)this.callback.Gf(this.Ne(),a,new JP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Md().layoutId+("and LayoutType: "+this.Md().layoutType)));else{var b=this.ra.get().J;g.cN(b.app,2);wL(this.Kc.get());this.OF(a)}}; vR.prototype.Tg=function(a,b){this.PF(a,b);g.dN(this.ra.get().J,2);this.Oc.get().J.cueVideoByPlayerVars({},2)};g.u(wR,vR);g.k=wR.prototype;g.k.Ne=function(){return this.slot}; g.k.Md=function(){return this.layout}; g.k.init=function(){if(1>=this.u.length)throw new rF("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),NP(this.D,this.slot,b.Md())}; g.k.release=function(){for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())b.value.release()}; g.k.OF=function(){yR(this)}; g.k.VO=function(a,b){OP(this.D,a,b)}; g.k.PF=function(a,b){var c=this;if(this.B!==this.u.length-1){var d=this.u[this.B];d.Tg(d.Md(),b);this.C=function(){c.callback.kd(c.slot,c.layout,b)}}else this.callback.kd(this.slot,this.layout,b)}; g.k.XO=function(a,b,c){bL(this.D,a,b,c);this.C?this.C():yR(this)}; g.k.WO=function(a,b){bL(this.D,a,b,"error");this.C?this.C():yR(this)};g.u(CR,g.C);g.k=CR.prototype;g.k.Ne=function(){return this.slot}; g.k.Md=function(){return this.layout}; g.k.init=function(){wO(this.layout.ua,"metadata_type_player_bytes_callback_ref").current=this;DP(this.be(),this);this.ra.get().addListener(this);var a=wO(this.layout.ua,"metadata_type_video_length_seconds");Vqa(this.gb.get(),this.layout.layoutId,a,this);aR(this.Ea.get(),this)}; g.k.release=function(){wO(this.layout.ua,"metadata_type_player_bytes_callback_ref").current=null;this.be().B["delete"](this);this.ra.get().removeListener(this);Wqa(this.gb.get(),this.layout.layoutId);bR(this.Ea.get(),this);this.C.dispose()}; g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Gf(this.slot,a,new JP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else if(SI(this.pd.get(),1)){rra(this,!1);var b=wO(a.ua,"metadata_type_ad_video_id"),c=wO(a.ua,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.wd.get().J.T().K.add(b,{Ho:c});(b=wO(a.ua,"metadata_type_sodar_extension_data"))&&fra(this.nd.get(), b);dra(this.ra.get(),!1);this.B(-1);this.u="rendering_start_requested";b=this.Oc.get();a=wO(a.ua,"metadata_type_player_vars");b.J.cueVideoByPlayerVars(a,2);this.C.start();this.Oc.get().J.playVideo(2)}else BR(this,"ui_unstable",new JP("Failed to render media layout because ad ui unstable."))}; g.k.jd=function(a,b){var c,d;if(b.layoutId===this.layout.layoutId){this.u="rendering";rO(this.Ga,"impression");rO(this.Ga,"start");this.ra.get().isMuted()&&qO(this.Ga,"mute");this.ra.get().isFullscreen()&&qO(this.Ga,"fullscreen");this.C.stop();var e="adcompletioncuerange:"+this.layout.layoutId;this.yb.get().addCueRange(e,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(c=nF(this.Ba.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)||"")||S("Media layout confirmed started, but ad CPN not set."); zL(this.Kc.get());this.B(1);this.Wc.get().u("onAdStart",this.adCpn);e=(null===(d=wO(this.layout.ua,"metadata_type_instream_video_ad_commands"))||void 0===d?void 0:d.impressionCommands)||[];var f=this.dc.get(),h=this.layout.layoutId;GM(f.u(),e,h)}}; g.k.oy=function(){qO(this.Ga,"clickthrough")}; g.k.Tg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new JP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_stop_requested",this.D=b,this.C.stop(),dra(this.ra.get(),!0))}; g.k.ut=function(a){a!=="adcompletioncuerange:"+this.layout.layoutId?S("Received CueRangeEnter signal for unknown layout.",this.slot,this.layout,{cueRangeId:a}):(this.yb.get().removeCueRange(a),a=wO(this.layout.ua,"metadata_type_video_length_seconds"),qra(this,a,!0),rO(this.Ga,"complete"))}; g.k.kd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.D=void 0,yL(this.Kc.get()),rra(this,!0),"abandoned"!==c&&this.Wc.get().u("onAdComplete"),this.Wc.get().u("onAdEnd",this.adCpn),this.B(0),c){case "abandoned":var d;rO(this.Ga,"abandon");var e=(null===(d=wO(this.layout.ua,"metadata_type_instream_video_ad_commands"))||void 0===d?void 0:d.onAbandonCommands)||[];d=this.dc.get();a=this.layout.layoutId;GM(d.u(),e,a);break;case "normal":rO(this.Ga,"complete");d= (null===(e=wO(this.layout.ua,"metadata_type_instream_video_ad_commands"))||void 0===e?void 0:e.completeCommands)||[];e=this.dc.get();a=this.layout.layoutId;GM(e.u(),d,a);break;case "skipped":rO(this.Ga,"skip")}}; g.k.fp=function(){return this.layout.layoutId}; g.k.kw=function(){return this.K}; g.k.rx=function(){}; g.k.Fn=function(a){qra(this,a)}; g.k.Hn=function(a){var b,c;if("not_rendering"!==this.u){this.F||(a=new g.TI(a.state,new g.CL),this.F=!0);var d=2===this.ra.get().getPresentingPlayerType();"rendering_start_requested"===this.u?d&&zR(a)&&this.callback.jd(this.slot,this.layout):g.VI(a,2)||!d?this.I():(zR(a)?this.B(1):a.state.isError()?BR(this,null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,new JP("There was a player error during this media layout.",{playerErrorCode:null===(c=a.state.getData())||void 0===c?void 0:c.errorCode})): g.VI(a,4)&&!g.VI(a,2)&&(qO(this.Ga,"pause"),this.B(2)),0>UI(a,4)&&!(0>UI(a,2))&&qO(this.Ga,"resume"))}}; g.k.LC=function(){rO(this.Ga,"active_view_measurable")}; g.k.KC=function(){rO(this.Ga,"active_view_fully_viewable_audible_half_duration")}; g.k.MC=function(){rO(this.Ga,"active_view_viewable")}; g.k.un=function(a){2===this.ra.get().getPresentingPlayerType()&&(a?qO(this.Ga,"fullscreen"):qO(this.Ga,"end_fullscreen"))}; g.k.vn=function(){2===this.ra.get().getPresentingPlayerType()&&qO(this.Ga,this.ra.get().isMuted()?"mute":"unmute")}; g.k.Mi=function(){}; g.k.En=function(){}; g.k.tg=function(){}; g.k.Pi=function(){}; g.k.Jh=function(){}; g.k.Te=function(){}; g.k.Ue=function(){}; g.k.Ni=function(){}; g.k.Oi=function(){}; g.k.Ih=function(){}; g.k.Li=function(){}; g.k.Ng=function(){};g.u(DR,vR);g.k=DR.prototype;g.k.Ne=function(){return this.u.Ne()}; g.k.Md=function(){return this.u.Md()}; g.k.init=function(){this.u.init()}; g.k.release=function(){this.u.release()}; g.k.OF=function(a){this.u.startRendering(a)}; g.k.PF=function(a,b){this.u.Tg(a,b)};ER.prototype.u=function(a,b,c,d){if(a=tra(a,b,c,d,this.be,this.B,this.Ea,this.gb,this.nd,this.Oc,this.Ba,this.ra,this.yb,this.Kc,this.Wc,this.pd,this.dc,this.wd))return a;throw new JP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wP(d.ua)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.u(FR,g.C);g.k=FR.prototype;g.k.jd=function(a,b){var c=this;if(ura(this)&&"LAYOUT_TYPE_MEDIA"===b.layoutType&&uP(b,this.C)){var d=nF(this.Ba.get(),2),e=this.u(b,d);e?lF(this.rb.get(),"opportunity_type_player_bytes_media_layout_entered",function(){return[Oqa(c.fb.get(),e.contentCpn,e.Cu,function(f){return c.B(f.slotId,"core",e,AP(c.bb.get(),f))},e.WB)]}):S("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.k.tg=function(){}; g.k.Pi=function(){}; g.k.Te=function(){}; g.k.Jh=function(){}; g.k.Ue=function(){}; g.k.Ni=function(){}; g.k.Oi=function(){}; g.k.Ih=function(){}; g.k.Li=function(){}; g.k.Ng=function(){}; g.k.kd=function(){};var qS=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=wra.prototype;g.k.init=function(){}; g.k.Ne=function(){return this.slot}; g.k.Wv=function(){this.callback.Te(this.slot)}; g.k.cw=function(){this.callback.Ue(this.slot)}; g.k.release=function(){};HR.prototype.u=function(a,b){return new wra(a,b)};g.k=xra.prototype;g.k.init=function(){}; g.k.Ne=function(){return this.slot}; g.k.Wv=function(){var a=this.ra.get();g.H(a.J.getRootNode(),"ad-showing");this.callback.Te(this.slot)}; g.k.cw=function(){this.callback.Ue(this.slot);var a=this.ra.get();g.en(a.J.getRootNode(),"ad-showing")}; g.k.release=function(){};g.k=yra.prototype;g.k.init=function(){wF(this.slot)&&(this.u=!0)}; g.k.Ne=function(){return this.slot}; g.k.Wv=function(){var a=this.ra.get();g.H(a.J.getRootNode(),"ad-showing");a=this.ra.get();g.H(a.J.getRootNode(),"ad-interrupting");this.callback.Te(this.slot)}; g.k.cw=function(){zra(this);var a=this.ra.get();g.en(a.J.getRootNode(),"ad-showing");a=this.ra.get();g.en(a.J.getRootNode(),"ad-interrupting");this.callback.Ue(this.slot)}; g.k.release=function(){zra(this)};IR.prototype.u=function(a,b){if(pF(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new xra(a,b,this.ra);if(pF(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new yra(a,b,this.ra);throw new rF("Unsupported slot with type "+b.Za+" and client metadata: "+(wP(b.ua)+" in PlayerBytesSlotAdapterFactory."));};g.u(KR,g.C);KR.prototype.np=function(a){for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof fQ&&2===d.category&&e.C===a&&b.push(d)}b.length&&PP(this.xx(),b)};g.u(LR,KR);g.k=LR.prototype;g.k.Bf=function(a,b){if(b)if("survey-submit"===a){for(var c=[],d=g.q(this.kb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof gQ&&f.C===b&&c.push(e)}c.length?PP(this.xx(),c):S("Survey is submitted but no registered triggers can be activated.")}else if("skip-button"===a){c=[];d=g.q(this.kb.values());for(e=d.next();!e.done;e=d.next())e=e.value,f=e.trigger,f instanceof fQ&&1===e.category&&f.C===b&&c.push(e);c.length&&PP(this.xx(),c)}}; g.k.np=function(a){KR.prototype.np.call(this,a)}; g.k.Sg=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new rF("Tried to register duplicate trigger for slot.");if(!(b instanceof gQ||b instanceof fQ))throw new rF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.kb.set(b.triggerId,new JR(a,b,c,d))}; g.k.Wg=function(a){this.kb["delete"](a.triggerId)}; g.k.Fw=function(){}; g.k.Ew=function(){}; g.k.zs=function(){};g.u(MR,g.C);g.k=MR.prototype; g.k.Sg=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new rF("Tried to register duplicate trigger for slot.");if(!(b instanceof HQ||b instanceof IQ||b instanceof JQ||b instanceof KQ||b instanceof LQ||b instanceof zQ||b instanceof xF||b instanceof eQ||b instanceof lQ||b instanceof yQ||b instanceof DQ))throw new rF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new JR(a,b,c,d);this.kb.set(b.triggerId,a);b instanceof LQ&&this.F.has(b.u)&& PP(this.u(),[a]);b instanceof HQ&&this.C.has(b.u)&&PP(this.u(),[a]);b instanceof xF&&this.B.has(b.C)&&PP(this.u(),[a])}; g.k.Wg=function(a){this.kb["delete"](a.triggerId)}; g.k.tg=function(a){this.F.add(a.slotId);for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof LQ&&a.slotId===d.trigger.u&&b.push(d);0UI(a,16)){a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.ut(b.value);this.u.clear()}}; g.k.Fn=function(){}; g.k.un=function(){}; g.k.Mi=function(){}; g.k.En=function(){}; g.k.vn=function(){};g.u(QR,g.C);g.k=QR.prototype;g.k.Sg=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new rF("Tried to register duplicate trigger for slot.");if(!(b instanceof hQ||b instanceof GQ))throw new rF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.kb.set(b.triggerId,new JR(a,b,c,d))}; g.k.Wg=function(a){this.kb["delete"](a.triggerId)}; g.k.sm=function(){}; g.k.lk=function(){}; g.k.ii=function(){}; g.k.jd=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.Za&&(null!=this.u?S("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.u=b.layoutId)}; g.k.kd=function(a){"SLOT_TYPE_ABOVE_FEED"===a.Za&&(this.u=null)}; g.k.tg=function(){}; g.k.Pi=function(){}; g.k.Jh=function(){}; g.k.Te=function(a){"SLOT_TYPE_ABOVE_FEED"===a.Za&&(null!=this.B?S("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.B=a.slotId)}; g.k.Ue=function(a){"SLOT_TYPE_ABOVE_FEED"===a.Za&&(null===this.B?S("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.B=null)}; g.k.Ni=function(){}; g.k.Oi=function(){}; g.k.Ih=function(){}; g.k.Li=function(){}; g.k.Ng=function(){}; g.k.Io=function(){null!=this.u&&xR(this,this.u)}; g.k.Wo=function(a){if(null===this.B){for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof GQ&&d.trigger.slotId===a&&b.push(d);b.length&&PP(this.C(),b)}}; g.k.Nr=function(){};g.u(RR,g.C);g.k=RR.prototype;g.k.Ng=function(a,b){for(var c=[],d=g.q(this.kb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&PP(this.u(),c)}; g.k.Sg=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new rF("Tried to register duplicate trigger for slot.");if(!(b instanceof Iqa))throw new rF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.kb.set(b.triggerId,new JR(a,b,c,d))}; g.k.Wg=function(a){this.kb["delete"](a.triggerId)}; g.k.tg=function(){}; g.k.Pi=function(){}; g.k.Jh=function(){}; g.k.Te=function(){}; g.k.Ue=function(){}; g.k.Ni=function(){}; g.k.Oi=function(){}; g.k.Ih=function(){}; g.k.Li=function(){}; g.k.jd=function(){}; g.k.kd=function(){};g.u(SR,g.C);SR.prototype.init=function(){}; SR.prototype.release=function(){}; SR.prototype.ba=function(){this.Ed.get().removeListener(this);g.C.prototype.ba.call(this)};TR.prototype.fetch=function(a){var b=this,c=a.NA;return this.bv.fetch(a.uG,{Mo:void 0===a.Mo?void 0:a.Mo,Ad:c}).then(function(d){var e=null,f=null;if(g.Q(b.za.get().J.T().experiments,"get_midroll_info_use_client_rpc"))f=d;else try{(e=JSON.parse(d.response))&&(f=e)}catch(h){d.response&&(d=d.response,d.startsWith("GIF89")||(h.params=d.substr(0,256),g.Ur(h)))}return Cra(f,c)})};g.u(UR,g.C);g.k=UR.prototype;g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.onAdUxClicked=function(a,b){VR(this,function(c){c.Bf(a,b)})}; g.k.aK=function(a){VR(this,function(b){b.Fw(a)})}; g.k.ZJ=function(a){VR(this,function(b){b.Ew(a)})}; g.k.oM=function(a){VR(this,function(b){b.zs(a)})};YR.prototype.u=function(a,b){for(var c=[],d=1;d=Math.abs(e-f)}e&&rO(this.Ga,"ad_placement_end")}; g.k.mE=function(a){a=a.layoutId;var b,c;this.u&&(null===(b=this.u.ai)||void 0===b?void 0:b.layout.layoutId)!==a&&(null===(c=this.u.ai)||void 0===c?void 0:c.Tg("normal"),Hra(this,a))}; g.k.eE=function(){}; g.k.VD=function(a){var b=wO(this.layout.ua,"metadata_type_layout_enter_ms"),c=wO(this.layout.ua,"metadata_type_layout_exit_ms");a*=1E3;b<=a&&ad&&(c=d-c,d=this.Uf.get(),xBa(d.J.app,b,c))}else S("Unexpected failure to add to playback timeline",this.slot,this.layout,Object.assign(Object.assign({},bS(this.layout)),{compositeLayout:Mra(wO(this.slot.ua,"metadata_type_fulfilled_layout"))}))}else S("Expected non-zero layout duration",this.slot,this.layout,Object.assign(Object.assign({},bS(this.layout)),{compositeLayout:Mra(wO(this.slot.ua,"metadata_type_fulfilled_layout"))}));this.ra.get().addListener(this); Vqa(this.gb.get(),this.layout.layoutId,a,this);NP(this.callback,this.slot,this.layout)}; g.k.release=function(){this.ra.get().removeListener(this);Wqa(this.gb.get(),this.layout.layoutId)}; g.k.startRendering=function(){if(this.u)S("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.u={lx:null,BF:!1};var a=wO(this.layout.ua,"metadata_type_sodar_extension_data");if(a)try{fra(this.nd.get(),a)}catch(b){S("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}OP(this.callback,this.slot,this.layout)}}; g.k.Tg=function(a){this.u?(this.u=null,bL(this.callback,this.slot,this.layout,a)):S("Expected the layout to be entered before stop rendering",this.slot,this.layout)}; g.k.Fn=function(a){if(this.u){if(this.Ga.u.has("impression")){var b=WQ(this.ra.get());Lra(this,b,a,this.u.lx)}this.u.lx=a}}; g.k.Hn=function(a){if(this.u){this.u.BF||(this.u.BF=!0,a=new g.TI(a.state,new g.CL));var b=TP(this.ra.get(),2,!1);zR(a)&&AR(b,0,null)&&rO(this.Ga,"impression");if(this.Ga.u.has("impression")&&(g.VI(a,4)&&!g.VI(a,2)&&qO(this.Ga,"pause"),0>UI(a,4)&&!(0>UI(a,2))&&qO(this.Ga,"resume"),g.VI(a,16)&&.5<=TP(this.ra.get(),2,!1)&&qO(this.Ga,"seek"),g.VI(a,2))){var c=wO(this.layout.ua,"metadata_type_video_length_seconds"),d=1>=Math.abs(c-b);Lra(this,a.state,d?c:b,this.u.lx);d&&rO(this.Ga,"complete")}}}; g.k.un=function(a){this.Ga.u.has("impression")&&qO(this.Ga,a?"fullscreen":"end_fullscreen")}; g.k.Mi=function(){}; g.k.En=function(){}; g.k.zE=function(){}; g.k.vn=function(){}; g.k.oy=function(){this.Ga.u.has("impression")&&qO(this.Ga,"clickthrough")}; g.k.LC=function(){qO(this.Ga,"active_view_measurable")}; g.k.KC=function(){this.Ga.u.has("impression")&&!this.Ga.u.has("seek")&&qO(this.Ga,"active_view_fully_viewable_audible_half_duration")}; g.k.MC=function(){this.Ga.u.has("impression")&&!this.Ga.u.has("seek")&&qO(this.Ga,"active_view_viewable")};cS.prototype.u=function(a,b,c,d){if(c.ua.u.has("metadata_type_dai")){a:{var e=wO(d.ua,"metadata_type_sub_layouts"),f=wO(d.ua,"metadata_type_ad_placement_config");if(lR(d,{qe:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],og:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==e&&void 0!==f){var h=[];e=g.q(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var m=wO(l.ua,"metadata_type_sub_layout_index");if(!lR(l,{qe:["metadata_type_video_length_seconds", "metadata_type_player_vars","metadata_type_layout_enter_ms","metadata_type_layout_exit_ms","metadata_type_player_bytes_callback_ref"],og:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new mO(l.bd,this.Ea,f,l.layoutId,m);h.push(new Kra(b,c,l,this.Uf,m,this.ra,this.Jc,this.gb,this.nd))}b=new mO(d.bd,this.Ea,f,d.layoutId);a=new Fra(a,c,d,this.Ba,this.Uf,this.Td,this.ra,b,this.Ea,h)}else a=null}if(a)return a}else if(a=tra(a,b,c,d,this.be,this.B,this.Ea,this.gb,this.nd,this.Oc,this.Ba,this.ra,this.yb, this.Kc,this.Wc,this.pd,this.dc,this.wd))return a;throw new JP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wP(d.ua)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.u(dS,g.C);g.k=dS.prototype;g.k.eE=function(a){this.u&&Nra(this,this.u,a)}; g.k.VD=function(){}; g.k.Gi=function(a){this.u&&this.u.contentCpn!==a&&(S("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.u.contentCpn}),this.u=null)}; g.k.cm=function(a){this.u&&this.u.contentCpn!==a&&S("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.u.contentCpn});this.u=null}; g.k.ba=function(){g.C.prototype.ba.call(this);this.u=null};g.u(eS,g.C); eS.prototype.Sg=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new rF("Tried to re-register the trigger.");a=new JR(a,b,c,d);if(a.trigger instanceof Lqa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof Hqa)this.C.set(a.trigger.triggerId,a);else throw new rF("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.u&&PP(this.D(),[a])}; eS.prototype.Wg=function(a){this.B["delete"](a.triggerId);this.C["delete"](a.triggerId)}; eS.prototype.mE=function(a){a=a.slotId;if(this.u!==a){var b=[];null!=this.u&&b.push.apply(b,g.la(Ora(this.C,this.u)));null!=a&&b.push.apply(b,g.la(Ora(this.B,a)));this.u=a;b.length&&PP(this.D(),b)}};g.u(fS,g.C);g.k=fS.prototype;g.k.Gi=function(){this.D=new hL(this,Uqa(this.za.get()));this.C=new iL;Pra(this)}; g.k.cm=function(){}; g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.fE=function(a){this.u.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.eE(a)}; g.k.WD=function(a){g.Bb(this.C.u,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.VD(a)}; g.k.Qx=function(a){var b=nF(this.Ba.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.q(a);for(var e=a.next();!e.done;e=a.next())e=e.value,b&&$Q(this.Ea.get(),{cuepointTrigger:{event:Qra(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.B.add(e),this.D.reduce(e)}; g.k.ba=function(){this.J.getVideoData(1).unsubscribe("cuepointupdated",this.Qx,this);this.listeners.length=0;this.B.clear();this.u.length=0;g.C.prototype.ba.call(this)};gS.prototype.addListener=function(a){this.listeners.add(a)}; gS.prototype.removeListener=function(a){this.listeners["delete"](a)};g.u(hS,oR);g.k=hS.prototype;g.k.Bf=function(a,b){qR(this.zo,a,this.Dd.get().u,this.Ea.get(),this.jh,this.Ei,this.Ne(),this.Md(),b)}; g.k.startRendering=function(a){pR(this.Ga,this.Ne(),this.Md(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new Zna(b,c,d,e,f)},this.Yj); oR.prototype.startRendering.call(this,a)}; g.k.jd=function(a,b){b.layoutId===this.layout.layoutId?rO(this.Ga,"impression"):this.Ei===b.layoutId&&(null===this.jh?this.jh=ZQ(this.Ea.get()):S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.kd=function(){}; g.k.tg=function(){}; g.k.Pi=function(){}; g.k.Jh=function(){}; g.k.Te=function(){}; g.k.Ue=function(){}; g.k.Ni=function(){}; g.k.Oi=function(){}; g.k.Ih=function(){}; g.k.Li=function(){}; g.k.Ng=function(){}; g.k.ba=function(){this.be().B["delete"](this);oR.prototype.ba.call(this)};g.u(iS,oR);g.k=iS.prototype;g.k.Bf=function(a,b){qR(this.zo,a,this.Dd.get().u,this.Ea.get(),this.jh,this.Ei,this.Ne(),this.Md(),b)}; g.k.startRendering=function(a){pR(this.Ga,this.Ne(),this.Md(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new TJ(b,c,d,e,f)},this.Yj); oR.prototype.startRendering.call(this,a)}; g.k.jd=function(a,b){b.layoutId===this.layout.layoutId?rO(this.Ga,"impression"):this.Ei===b.layoutId&&(null===this.jh?this.jh=ZQ(this.Ea.get()):S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.kd=function(){}; g.k.tg=function(){}; g.k.Pi=function(){}; g.k.Jh=function(){}; g.k.Te=function(){}; g.k.Ue=function(){}; g.k.Ni=function(){}; g.k.Oi=function(){}; g.k.Ih=function(){}; g.k.Li=function(){}; g.k.Ng=function(){}; g.k.ba=function(){this.be().B["delete"](this);oR.prototype.ba.call(this)};Wra.prototype.u=function(a,b,c,d){if(lR(d,nra()))return new rR(a,c,d,this.Pb,this.Ea,this.be,this.gb,this.Dd);if(lR(d,Ura()))return new hS(a,c,d,this.Pb,this.Ea,this.be,this.gb,this.Dd);if(lR(d,Vra()))return new iS(a,c,d,this.Pb,this.Ea,this.be,this.gb,this.Dd);throw new JP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wP(d.ua)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.u(jS,oR);g.k=jS.prototype;g.k.Fn=function(){}; g.k.Hn=function(){}; g.k.un=function(){}; g.k.Mi=function(a){a&&nS(this.B,this.layout)}; g.k.En=function(a){var b=xO(this.layout);if(this.C=vO(a,cra(this.ra.get())))b.onErrorCommand&&this.dc.get().executeCommand(b.onErrorCommand,this.layout.layoutId),nS(this.B,this.layout)}; g.k.vn=function(){}; g.k.fp=function(){return this.Md().layoutId}; g.k.kw=function(){return this.C}; g.k.Bf=function(a){"in_video_overlay_close_button"===a&&nS(this.B,this.layout)}; g.k.zs=function(a){"invideo-overlay"===a&&nS(this.B,this.layout)}; g.k.startRendering=function(a){oR.prototype.startRendering.call(this,a);this.callback.jd(this.slot,a)}; g.k.init=function(){oR.prototype.init.call(this);aR(this.Ea.get(),this);this.ra.get().addListener(this);this.Yj.push(new DJ(xO(this.layout),pO(this.Ga),this.layout.layoutId,{adsClientData:this.layout.sd}))}; g.k.release=function(){oR.prototype.release.call(this);this.ra.get().removeListener(this);bR(this.Ea.get(),this)};g.u(kS,oR);g.k=kS.prototype;g.k.init=function(){oR.prototype.init.call(this);aR(this.Ea.get(),this);this.ra.get().addListener(this);this.Yj.push(new DJ(xO(this.layout),pO(this.Ga),this.layout.layoutId,{adsClientData:this.layout.sd}))}; g.k.startRendering=function(a){oR.prototype.startRendering.call(this,a);this.callback.jd(this.slot,a)}; g.k.Bf=function(a){"in_video_overlay_close_button"===a&&nS(this.B,this.layout)}; g.k.Fw=function(a){if("invideo-overlay"===a){a=Yra(this.D,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}}; g.k.zs=function(a){"invideo-overlay"===a&&nS(this.B,this.layout)}; g.k.Ew=function(a){if("invideo-overlay"===a){a=Yra(this.D,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}}; g.k.Fn=function(){}; g.k.Hn=function(){}; g.k.un=function(){}; g.k.Mi=function(a){a&&nS(this.B,this.layout)}; g.k.En=function(a){var b=xO(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=cra(this.ra.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.kb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.ce(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.ce(0,0)}if(this.C=vO(a,d,c))b.onErrorCommand&&this.dc.get().executeCommand(b.onErrorCommand,this.layout.layoutId),nS(this.B,this.layout)}; g.k.vn=function(){}; g.k.fp=function(){return this.Md().layoutId}; g.k.kw=function(){return this.C}; g.k.release=function(){oR.prototype.release.call(this);this.ra.get().removeListener(this);bR(this.Ea.get(),this)};lS.prototype.u=function(a,b,c,d){if(b=tR(a,c,d,this.Pb,this.ra,this.Ea,this.Dd))return b;b=["metadata_type_invideo_overlay_ad_renderer"];for(var e=g.q(nO()),f=e.next();!f.done;f=e.next())b.push(f.value);if(lR(d,{qe:b,og:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}))return new kS(c,d,this.Ea,this.gb,this.Pb,a,this.B,this.C,this.ra,this.dc,this.za);if(lR(d,Xra()))return new jS(c,d,this.Ea,this.gb,this.Pb,a,this.B,this.ra,this.dc,this.za);throw new JP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ wP(d.ua)+" in WebDesktopMainAndEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.u(mS,g.C);mS.prototype.Sg=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new rF("Tried to register duplicate trigger for slot.");if(!(b instanceof Gqa))throw new rF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.kb.set(b.triggerId,new JR(a,b,c,d))}; mS.prototype.Wg=function(a){this.kb["delete"](a.triggerId)};g.u(oS,g.C);g.k=oS.prototype;g.k.Sg=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new rF("Tried to register duplicate trigger for slot.");if(!(b instanceof kQ))throw new rF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.kb.set(b.triggerId,new JR(a,b,c,d));a=this.u.has(b.layoutId)?this.u.get(b.layoutId):new Set;a.add(b);this.u.set(b.layoutId,a)}; g.k.Wg=function(a){this.kb["delete"](a.triggerId);if(!(a instanceof kQ))throw new rF("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B["delete"](a.triggerId));if(b=this.u.get(a.layoutId))b["delete"](a),0===b.size&&this.u["delete"](a.layoutId)}; g.k.tg=function(){}; g.k.Pi=function(){}; g.k.Jh=function(){}; g.k.Te=function(){}; g.k.Ue=function(){}; g.k.Ni=function(){}; g.k.Oi=function(){}; g.k.Ih=function(){}; g.k.Li=function(){}; g.k.Ng=function(){}; g.k.jd=function(a,b){var c=this;if(this.u.has(b.layoutId)){var d=this.u.get(b.layoutId),e={};d=g.q(d);for(var f=d.next();!f.done;e={uo:e.uo},f=d.next())e.uo=f.value,f=new g.F(function(h){return function(){var l=c.kb.get(h.uo.triggerId);PP(c.C(),[l])}}(e),e.uo.durationMs),f.start(),this.B.set(e.uo.triggerId,f)}}; g.k.kd=function(){};g.u(pS,g.C);pS.prototype.init=function(){}; pS.prototype.release=function(){}; pS.prototype.ba=function(){this.Di.get().removeListener(this);g.C.prototype.ba.call(this)};g.u(Zra,g.C);g.u($ra,g.C);g.u(asa,g.C);g.u(bsa,g.C);g.u(rS,sR);rS.prototype.startRendering=function(a){sR.prototype.startRendering.call(this,a);wO(this.layout.ua,"metadata_ad_video_is_listed")&&(a=wO(this.layout.ua,"metadata_type_ad_info_ad_metadata"),this.Lm.get().J.xa("onAdMetadataAvailable",a))};csa.prototype.u=function(a,b,c,d){b=ora();b.qe.push("metadata_type_ad_info_ad_metadata");if(lR(d,b))return new rS(a,c,d,this.Pb,this.ra,this.Ea,this.Dd,this.Lm);throw new JP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wP(d.ua)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.u(dsa,g.C);esa.prototype.u=function(a,b,c,d){if(a=tR(a,c,d,this.Pb,this.ra,this.Ea,this.Dd))return a;throw new JP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+wP(d.ua)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.u(fsa,g.C);g.u(hsa,g.C);g.k=isa.prototype;g.k.Wo=function(a){a:{var b=g.q(this.B.u.u.values());for(var c=b.next();!c.done;c=b.next()){c=g.q(c.value.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.slot.slotId===a&&"scheduled"===d.u){b=!0;break a}}b=!1}if(b)this.Zh.Wo(a);else try{this.u().Wo(a)}catch(e){g.jo(e)}}; g.k.Io=function(){a:{var a=SP(this.B.u,"SLOT_TYPE_ABOVE_FEED_1");a=g.q(a.values());for(var b=a.next();!b.done;b=a.next())if(RP(b.value)){a=!0;break a}a=!1}a?this.Zh.Io():this.u().Io()}; g.k.Nr=function(a){this.u().Nr(a)}; g.k.sm=function(){this.u().sm()}; g.k.lk=function(){this.u().lk()}; g.k.ii=function(){this.u().ii()};g.u(g.sS,g.O);g.k=g.sS.prototype;g.k.create=function(){}; g.k.load=function(){this.loaded=!0}; g.k.unload=function(){this.loaded=!1}; g.k.pe=function(){}; g.k.Oh=function(){return!0}; g.k.ba=function(){this.loaded&&this.unload();g.O.prototype.ba.call(this)}; g.k.qb=function(){return{}}; g.k.getOptions=function(){return[]};g.u(tS,g.sS);g.k=tS.prototype;g.k.create=function(){this.load();this.created=!0}; g.k.load=function(){g.sS.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.B.u.Ae.hg,b=this.F(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;f=lsa(f,a,e);c=c&&c.clientPlaybackNonce||"";var h=1E3*this.player.getDuration(1);TM(a)?(this.u=new NM(this,this.player,this.D,b,this.B.u.Ae),UM(this.u,f.vl),Rqa(this.B.u.Mj,c,h,f.Jn,f.Jn.concat(f.vl),e,d),OM(this.u)):(Rqa(this.B.u.Mj,c,h,f.Jn,f.Jn.concat(f.vl),e,d),this.u=new NM(this,this.player,this.D,b,this.B.u.Ae),UM(this.u,f.vl))}; g.k.destroy=function(){var a=this.player.getVideoData(1);Sqa(this.B.u.Mj,a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.sS.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.u){var a=this.u;this.u=null;a.dispose()}null!=this.C&&(a=this.C,this.C=null,a.dispose());this.D.reset()}; g.k.Oh=function(){return!1}; g.k.Iy=function(){return null===this.u?!1:this.u.Iy()}; g.k.Ki=function(a){null!==this.u&&this.u.Ki(a)}; g.k.getAdState=function(){return this.u?this.u.la:-1}; g.k.getOptions=function(){return Object.values(xDa)}; g.k.pe=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=hI(this.player);Object.assign(d,c.u);this.u&&!d.AD_CPN&&(d.AD_CPN=this.u.va);c=g.Sm(c.url,d)}else c=null;return c;case "isExternalShelfAllowedFor":a:if(b.playerResponse){c=b.playerResponse.adPlacements||[];for(d=0;dthis.B;)a[e++]^=d[this.B++];for(var f=c-(c-e)%16;ea||10IH&&(a=Math.max(.1,a)),this.qu(a))}; g.k.stopVideo=function(){this.Oe()&&(TAa&&lr&&0=a)){a-=this.u.length;for(var b=0;b=(a||1)}; g.k.tH=function(){for(var a=this.C.length-1;0<=a;a--)HS(this,this.C[a]);this.u.length==this.B.length&&4<=this.u.length||(4>this.B.length?this.bB(4):(this.u=[],g.Cb(this.B,function(b){HS(this,b)},this)))}; GS.prototype.fillPool=GS.prototype.bB;GS.prototype.getTag=GS.prototype.BI;GS.prototype.releaseTag=GS.prototype.SP;GS.prototype.hasTags=GS.prototype.gJ;GS.prototype.activateTags=GS.prototype.tH;g.u(g.IS,g.AS);g.k=g.IS.prototype;g.k.Mk=function(){return!0}; g.k.isView=function(){return!1}; g.k.nu=function(){return!1}; g.k.Na=function(){return this.u}; g.k.Oe=function(){return this.u.src}; g.k.ru=function(a){var b=this.getPlaybackRate();this.u.src=a;this.setPlaybackRate(b)}; g.k.lu=function(){this.u.removeAttribute("src")}; g.k.getPlaybackRate=function(){try{return 0<=this.u.playbackRate?this.u.playbackRate:1}catch(a){return 1}}; g.k.setPlaybackRate=function(a){this.getPlaybackRate()!=a&&(this.u.playbackRate=a);return a}; g.k.Il=function(){return this.u.loop}; g.k.setLoop=function(a){this.u.loop=a}; g.k.canPlayType=function(a,b){return this.u.canPlayType(a,b)}; g.k.Nk=function(){return this.u.paused}; g.k.Fp=function(){return this.u.seeking}; g.k.zi=function(){return this.u.ended}; g.k.hs=function(){return this.u.muted}; g.k.Wn=function(a){lA();this.u.muted=a}; g.k.Kl=function(){return this.u.played||Jy([],[])}; g.k.zf=function(){try{var a=this.u.buffered}catch(b){}return a||Jy([],[])}; g.k.ip=function(){return this.u.seekable||Jy([],[])}; g.k.Ct=function(){return this.u.getStartDate?this.u.getStartDate():null}; g.k.getCurrentTime=function(){return this.u.currentTime}; g.k.qu=function(a){this.u.currentTime=a}; g.k.getDuration=function(){return this.u.duration}; g.k.load=function(){var a=this.u.playbackRate;this.u.load&&this.u.load();this.u.playbackRate=a}; g.k.pause=function(){this.u.pause()}; g.k.play=function(){var a=this.u.play();if(!a||!a.then)return null;a.then(void 0,function(){}); return a}; g.k.rg=function(){return this.u.readyState}; g.k.ks=function(){return this.u.networkState}; g.k.Ah=function(){return this.u.error?this.u.error.code:null}; g.k.yn=function(){return this.u.error?this.u.error.message:""}; g.k.getVideoPlaybackQuality=function(){var a={};if(this.u){if(this.u.getVideoPlaybackQuality)return this.u.getVideoPlaybackQuality();this.u.webkitDecodedFrameCount&&(a.totalVideoFrames=this.u.webkitDecodedFrameCount,a.droppedVideoFrames=this.u.webkitDroppedFrameCount)}return a}; g.k.dm=function(){return!!this.u.webkitCurrentPlaybackTargetIsWireless}; g.k.vx=function(){return!!this.u.webkitShowPlaybackTargetPicker()}; g.k.togglePictureInPicture=function(){jA()?this.u!=window.document.pictureInPictureElement?this.u.requestPictureInPicture():window.document.exitPictureInPicture():kA()&&this.u.webkitSetPresentationMode("picture-in-picture"==this.u.webkitPresentationMode?"inline":"picture-in-picture")}; g.k.rk=function(){var a=this.u;return new g.ae(a.offsetLeft,a.offsetTop)}; g.k.setPosition=function(a){return g.tg(this.u,a)}; g.k.zn=function(){return g.Bg(this.u)}; g.k.setSize=function(a){return g.Ag(this.u,a)}; g.k.getVolume=function(){return this.u.volume}; g.k.setVolume=function(a){lA();this.u.volume=a}; g.k.Vv=function(a){if(!this.B[a]){var b=(0,g.z)(this.HJ,this);this.u.addEventListener(a,b);this.B[a]=b}}; g.k.HJ=function(a){this.dispatchEvent(new FS(this,a.type,a))}; g.k.setAttribute=function(a,b){this.u.setAttribute(a,b)}; g.k.removeAttribute=function(a){this.u.removeAttribute(a)}; g.k.hasAttribute=function(a){return this.u.hasAttribute(a)}; g.k.Ao=ba(7);g.k.Cq=ba(9);g.k.tm=ba(4);g.k.Jo=ba(11);g.k.Uo=function(){return Ds(this.u)}; g.k.jp=function(a){return g.pg(this.u,a)}; g.k.Uw=function(){return g.He(document.body,this.u)}; g.k.ba=function(){for(var a in this.B)this.u.removeEventListener(a,this.B[a]);g.AS.prototype.ba.call(this)};g.u(g.JS,g.AS);g.k=g.JS.prototype;g.k.isView=function(){return!0}; g.k.nu=function(){var a=this.u.getCurrentTime();if(a=c.Pj.length)c=!1;else{for(var d=g.q(c.Pj),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof RF)){c=!1;break a}var f=a.u.getId();e.B&&(e.B.u=f,e.u=null)}c.oq=a;c=!0}c&& (b.V("internalaudioformatchange",b.videoData,!0),U_(b)&&b.Ma("hlsaudio",a.id))}}}; g.k.hI=function(){return this.getAvailableAudioTracks()}; g.k.getAvailableAudioTracks=function(){return g.Z(this.app,this.playerType).getAvailableAudioTracks()}; g.k.getMaxPlaybackQuality=function(){var a=g.Z(this.app,this.playerType);return a&&a.getVideoData().La?nC(a.N?kya(a.X,a.N,n0(a)):AD):"unknown"}; g.k.getUserPlaybackQualityPreference=function(){var a=g.Z(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; g.k.getSubtitlesUserSettings=function(){var a=g.bU(this.app.F);return a?a.CI():null}; g.k.resetSubtitlesUserSettings=function(){g.bU(this.app.F).aQ()}; g.k.setMinimized=function(a){this.app.setMinimized(a)}; g.k.setGlobalCrop=function(a){this.app.template.setGlobalCrop(a)}; g.k.getVisibilityState=function(){var a=this.app.T();a=this.app.visibility.u&&!g.Q(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.dm(),this.isFullscreen()||TC(this.app.T()),a,this.isInline(),this.app.visibility.pictureInPicture,this.app.visibility.C)}; g.k.isMutedByMutedAutoplay=function(){return this.app.jb}; g.k.isInline=function(){return this.app.isInline()}; g.k.setInternalSize=function(a,b){this.app.template.setInternalSize(new g.ce(a,b))}; g.k.tc=function(){var a=g.Z(this.app,void 0);return a?a.tc():0}; g.k.dm=function(){var a=g.Z(this.app,this.playerType);return!!a&&a.visibility.B}; g.k.isFullscreen=function(){return this.app.isFullscreen()}; g.k.setSafetyMode=function(a){this.app.T().enableSafetyMode=a}; g.k.canPlayType=function(a){return this.app.canPlayType(a)}; g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.aa("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==b.Ka().videoId||(a.index=b.index)):I0(this.app,{list:a.list,index:a.index,playlist_length:d.length});WT(this.app.getPlaylist(),a);this.xa("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.k.updateVideoData=function(a,b){var c=g.Z(this.app,this.playerType||1);c&&c.getVideoData().Xg(a,b)}; g.k.updateEnvironmentData=function(a){this.app.T().Xg(a,!1)}; g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)}; g.k.setCardsVisible=function(a,b,c){var d=g.BT(this.app.F);d&&d.Ep()&&d.setCardsVisible(a,b,c)}; g.k.productsInVideoVisibilityUpdated=function(a){this.V("changeProductsInVideoVisibility",a)}; g.k.setInline=function(a){this.app.setInline(a)}; g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; g.k.getVideoAspectRatio=function(){return this.app.template.getVideoAspectRatio()}; g.k.getPreferredQuality=function(){var a=g.Z(this.app);return a?a.getPreferredQuality():"unknown"}; g.k.setPlaybackQualityRange=function(a,b){var c=g.Z(this.app,this.playerType);if(c){var d=lC(a,b||a,!0,"m");jta(c,d)}}; g.k.onAdUxClicked=function(a,b){this.V("aduxclicked",a,b)}; g.k.getLoopVideo=function(){return this.app.getLoopVideo()}; g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)}; g.k.V=function(a,b){for(var c=[],d=1;d([^<>]+)<\/a>/;g.u(yU,g.cR);yU.prototype.Oa=function(){var a=this;this.B();var b=this.J.getVideoData();if(b.isValid()){var c=[];this.J.T().N||c.push({src:b.ce("mqdefault.jpg")||"",sizes:"320x180"});this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:c});c=b=null;g.xT(this.J)&&(this.u["delete"]("nexttrack"),this.u["delete"]("previoustrack"),b=function(){a.J.nextVideo()},c=function(){a.J.previousVideo()}); xU(this,"nexttrack",b);xU(this,"previoustrack",c)}}; yU.prototype.B=function(){var a=g.JI(this.J);a=a.isError()?"none":g.IL(a)?"playing":"paused";this.mediaSession.playbackState=a}; yU.prototype.ba=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())xU(this,b.value,null);g.cR.prototype.ba.call(this)};g.u(zU,g.V);zU.prototype.Oa=function(a,b){cua(this,b);this.Hc&&dua(this,this.Hc)}; zU.prototype.ac=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&cua(this,b);this.u&&dua(this,a.state);this.Hc=a.state}; zU.prototype.wc=function(){this.B.show();this.J.V("paidcontentoverlayvisibilitychange",!0)}; zU.prototype.ib=function(){this.B.hide();this.J.V("paidcontentoverlayvisibilitychange",!1)};g.u(BU,g.V);BU.prototype.hide=function(){this.u.stop();this.message.style.display="none";g.V.prototype.hide.call(this)}; BU.prototype.B=function(a){AU(this,a.state)}; BU.prototype.C=function(){AU(this,g.JI(this.api))}; BU.prototype.D=function(){this.message.style.display="block"};g.u(g.CU,g.qN);g.k=g.CU.prototype;g.k.show=function(){var a=this.rf();g.qN.prototype.show.call(this);this.X&&(this.K.R(window,"blur",this.ib),this.K.R(document,"click",this.cL));a||this.V("show",!0)}; g.k.hide=function(){var a=this.rf();g.qN.prototype.hide.call(this);eua(this);a&&this.V("show",!1)}; g.k.wc=function(a,b){this.u=a;this.W.show();b?(this.P||(this.P=this.K.R(this.J,"appresize",this.dA)),this.dA()):this.P&&(this.K.Hb(this.P),this.P=void 0)}; g.k.dA=function(){var a=g.lT(this.J);this.u&&a.On(this.element,this.u)}; g.k.ib=function(){var a=this.rf();eua(this);this.W.hide();a&&this.V("show",!1)}; g.k.cL=function(a){var b=Ko(a);b&&(g.He(this.element,b)||this.u&&g.He(this.u,b)||!g.KO(a))||this.ib()}; g.k.rf=function(){return this.ab&&4!==this.W.state};g.u(EU,g.CU);EU.prototype.D=function(a){this.C&&(a?(fua(this),this.wc()):(this.seen&&gua(this),this.ib()))}; EU.prototype.F=function(a){this.api.isMutedByMutedAutoplay()&&g.VI(a,2)&&this.ib()}; EU.prototype.onClick=function(){this.api.unMute();gua(this)};g.u(g.GU,g.cR);g.k=g.GU.prototype;g.k.init=function(){var a=g.JI(this.api);this.sb(a);this.Xj();this.Ta()}; g.k.Oa=function(a,b){if(this.ca!==b.videoId){this.ca=b.videoId;var c=this.Fc;c.ca=b&&0=b){this.C=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.D-1);02*b&&d<3*b&&(this.hq(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.No(a)}this.va=Date.now();this.Ca.start()}}; g.k.EO=function(a){jua(this,a)||(iua(this)||!JU(this,a)||this.F.isActive()||(FU(this),g.No(a)),this.C&&(this.C=!1))}; g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.rq("embedsRequestStorageAccessResult",{resolved:!0});nBa(!0);lp();window.location.reload()},function(){g.rq("embedsRequestStorageAccessResult",{resolved:!1}); a.Ht()})}; g.k.Ds=function(){}; g.k.rm=function(){}; g.k.hq=function(){}; g.k.Ht=function(){var a=g.JI(this.api);g.U(a,2)&&tT(this.api)||(g.IL(a)?this.api.pauseVideo():(this.api.app.hf=!0,this.api.playVideo(),this.B&&document.activeElement===this.B.D.element&&this.api.getRootNode().focus()))}; g.k.FO=function(a){var b=this.api.getPresentingPlayerType();if(!HU(this,Ko(a)))if(a=this.api.T(),(g.Q(this.api.T().experiments,"player_doubletap_to_seek")||g.Q(this.api.T().experiments,"embeds_enable_mobile_dtts"))&&this.C)this.C=!1;else if(a.la&&3!==b)try{this.api.toggleFullscreen()["catch"](function(c){kua(c)})}catch(c){kua(c)}}; g.k.GO=function(a){lua(this,.3,a.scale);g.No(a)}; g.k.HO=function(a){lua(this,.1,a.scale)}; g.k.Ta=function(){var a=g.aF(this.api).getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Fc.resize();g.K(b,"ytp-fullscreen",this.api.isFullscreen());g.K(b,"ytp-large-width-mode",c);g.K(b,"ytp-small-mode",this.ye());g.K(b,"ytp-tiny-mode",this.ye()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height));g.K(b,"ytp-big-mode",this.Ud());this.u&&this.u.resize(a)}; g.k.QK=function(a){this.sb(a.state);this.Xj()}; g.k.pw=function(){var a=!!this.ca&&!g.sT(this.api),b=2===this.api.getPresentingPlayerType(),c=this.api.T();if(b){if(iCa&&g.Q(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=gU(g.rT(this.api));return a&&b.Iy()}return a&&(c.Gm||this.api.isFullscreen()||c.me)}; g.k.Xj=function(){var a=this.pw();this.vi!==a&&(this.vi=a,g.K(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.k.sb=function(a){var b;(b=a.isCued())||(b=((b=g.Z(this.api.app,void 0))?bZ(b):!0)&&3!==this.api.getPresentingPlayerType());b!==this.isCued&&(this.isCued=b,this.ka&&this.Hb(this.ka),this.ka=this.R(g.aF(this.api),"touchstart",this.IO,void 0,b));var c=a.Jb()&&!g.U(a,32)||ET(this.api);kU(this.Fc,128,!c);c=3===this.api.getPresentingPlayerType();kU(this.Fc,256,c);c=this.api.getRootNode();if(g.U(a,2))var d=[c2.ENDED];else d=[],g.U(a,8)?d.push(c2.PLAYING):g.U(a,4)&&d.push(c2.PAUSED),g.U(a,1)&&!g.U(a,32)&& d.push(c2.BUFFERING),g.U(a,32)&&d.push(c2.SEEKING),g.U(a,64)&&d.push(c2.UNSTARTED);g.Ab(this.W,d)||(g.fn(c,this.W),this.W=d,g.dn(c,d));d=this.api.T();var e=g.U(a,2);g.K(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.K(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.Y);g.U(a,128)&&!g.OC(d)?(this.u||(this.u=new g.tU(this.api),g.D(this,this.u),g.iP(this.api,this.u.element,4)),this.u.B(a.getData()),this.u.show()):this.u&&(this.u.dispose(),this.u=null)}; g.k.pj=function(){return g.CT(this.api)&&g.DT(this.api)?(this.api.setCardsVisible(!1,!1),!0):g.sT(this.api)?(g.uT(this.api,!0),!0):!1}; g.k.PK=function(a){this.Y=a;this.yg()}; g.k.Ud=function(){return!1}; g.k.ye=function(){return!this.Ud()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; g.k.uh=function(){return this.N}; g.k.tk=function(){return null}; g.k.mi=function(){var a=g.aF(this.api).getPlayerSize();return new g.ag(0,0,a.width,a.height)}; g.k.handleGlobalKeyDown=function(){return!1}; g.k.handleGlobalKeyUp=function(){return!1}; g.k.On=function(){}; g.k.showControls=function(a){void 0!==a&&uI(g.aF(this.api),a)}; g.k.Vj=function(){}; g.k.zB=function(){return null};g.u(KU,g.V);KU.prototype.onClick=function(){this.J.xa("BACK_CLICKED")};g.u(g.LU,g.V);g.LU.prototype.show=function(){g.V.prototype.show.call(this);this.u.Lb()}; g.LU.prototype.hide=function(){this.B.stop();g.V.prototype.hide.call(this)}; g.LU.prototype.rm=function(a){a?g.U(g.JI(this.J),64)||MU(this,soa(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?MU(this,uoa(),"Stop live playback"):MU(this,qoa(),"Pause"))};g.u(OU,g.V);g.k=OU.prototype;g.k.lG=function(){g.CT(this.J)&&g.DT(this.J)&&this.rf()&&this.ib()}; g.k.xQ=function(){this.ib();g.to("iv-teaser-clicked",null!=this.u);this.J.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}; g.k.RK=function(){g.to("iv-teaser-mouseover");this.u&&this.u.stop()}; g.k.ZO=function(a){this.u||!a||g.DT(this.J)||this.B&&this.B.isActive()||(this.wc(a),g.to("iv-teaser-shown"))}; g.k.wc=function(a){this.ya("text",a.teaserText);this.element.setAttribute("dir",g.on(a.teaserText));this.D.show();this.B=new g.F(function(){g.H(this.J.getRootNode(),"ytp-cards-teaser-shown");this.iz()},0,this); this.B.start();PU(this.ci,!1);this.u=new g.F(this.ib,580+a.durationMs,this);this.u.start();this.F.push(this.wa("mouseover",this.gD,this));this.F.push(this.wa("mouseout",this.fD,this))}; g.k.iz=function(){if(g.OC(this.J.T())&&this.ab){var a=this.ci.element.offsetLeft,b=g.me("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.ci.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.k.KH=function(){g.OC(this.J.T())&&this.W.ye()&&this.ab&&this.P.start()}; g.k.gD=function(){this.I.stop();this.u&&this.u.isActive()&&this.K.start()}; g.k.fD=function(){this.K.stop();this.u&&!this.u.isActive()&&this.I.start()}; g.k.NN=function(){this.u&&this.u.stop()}; g.k.MN=function(){this.ib()}; g.k.ib=function(){!this.u||this.C&&this.C.isActive()||(g.to("iv-teaser-hidden"),this.D.hide(),g.en(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.F(function(){for(var a=g.q(this.F),b=a.next();!b.done;b=a.next())this.Hb(b.value);this.F=[];this.u&&(this.u.dispose(),this.u=null);PU(this.ci,!0)},330,this),this.C.start())}; g.k.rf=function(){return this.ab&&4!==this.D.state}; g.k.ba=function(){var a=this.J.getRootNode();a&&g.en(a,"ytp-cards-teaser-shown");g.Yf(this.B,this.C,this.u);g.V.prototype.ba.call(this)};g.u(QU,g.V);g.k=QU.prototype;g.k.wc=function(){this.B.show();g.to("iv-button-shown")}; g.k.ib=function(){g.to("iv-button-hidden");this.B.hide()}; g.k.rf=function(){return this.ab&&4!==this.B.state}; g.k.ba=function(){this.u&&this.u();g.V.prototype.ba.call(this)}; g.k.qN=function(){g.to("iv-button-mouseover")}; g.k.onClicked=function(a){g.CT(this.J);var b=g.cn(this.J.getRootNode(),"ytp-cards-teaser-shown");g.to("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.J.setCardsVisible(!g.DT(this.J),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};var nua=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));var g2={},UU=(g2.BUTTON="ytp-button",g2.TITLE_NOTIFICATIONS="ytp-title-notifications",g2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",g2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",g2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",g2);g.u(VU,g.V);VU.prototype.onClick=function(){g.LT(this.api,this.element);var a=!this.u;this.ya("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.ya("pressed",a);qua(this,a)};g.u(g.XU,g.V);g.XU.prototype.B=function(){g.H(this.element,"ytp-sb-subscribed")}; g.XU.prototype.C=function(){g.en(this.element,"ytp-sb-subscribed")};g.u(YU,g.V);g.k=YU.prototype;g.k.sy=function(){vua(this);this.channel.classList.remove("ytp-title-expanded")}; g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.k.ew=function(){if(tua(this)&&!this.isExpanded()){this.ya("flyoutUnfocusable","false");this.ya("channelTitleFocusable","0");this.C&&this.C.stop();this.subscribeButton&&(this.subscribeButton.show(),g.wN(this.api,this.subscribeButton.element,!0));var a=this.api.getVideoData();this.B&&a.ao&&a.subscribed&&(this.B.show(),g.wN(this.api,this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.k.Jv=function(){this.ya("flyoutUnfocusable","true");this.ya("channelTitleFocusable","-1");this.C&&this.C.start()}; g.k.oa=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.gk&&!!a.sf:g.OC(b)&&(c=!!a.videoId&&!!a.gk&&!!a.sf&&!(a.jc&&b.pfpChazalUi));b=g.zD(this.api.T())+a.gk;g.OC(this.api.T())&&(b=g.Ed(b,g.TU({},"emb_ch_name_ex")));var d=a.gk,e=a.sf,f=a.author;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?"":f;c?(d=g.zD(this.api.T())+d,this.I!==e&&(this.u.style.backgroundImage="url("+e+")",this.I=e),this.ya("channelLink", d),this.ya("channelLogoLabel",g.IJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:f})),g.H(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.en(this.api.getRootNode(),"ytp-title-enable-channel-logo");g.wN(this.api,this.u,c&&this.N);this.subscribeButton&&(this.subscribeButton.channelId=a.zg);this.ya("expandedTitle",a.dw);this.ya("channelTitleLink",b);this.ya("expandedSubtitle",a.expandedSubtitle)};g.u(g.$U,g.qN);g.$U.prototype.ya=function(a,b){g.qN.prototype.ya.call(this,a,b);this.V("size-change")};g.u(cV,g.qN);cV.prototype.TD=function(){this.V("size-change")}; cV.prototype.focus=function(){this.content.focus()}; cV.prototype.GM=function(){this.V("back")};g.u(g.dV,cV);g.dV.prototype.Qb=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{var c=g.xb(this.items,a,wua);if(0<=c)return;c=~c;g.ub(this.items,c,0,a);g.De(this.menuItems.element,a.element,c)}a.subscribe("size-change",this.Sx,this);this.menuItems.V("size-change")}; g.dV.prototype.ie=function(a){a.unsubscribe("size-change",this.Sx,this);this.ma()||(g.ob(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.V("size-change"))}; g.dV.prototype.Sx=function(){this.menuItems.V("size-change")}; g.dV.prototype.focus=function(){for(var a=0,b=0;bb.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone(); d&&(h=a,e=b,f=5,65==(f&65)&&(h.x=d.right)&&(f&=-2),132==(f&132)&&(h.y=d.bottom)&&(f&=-5),h.xd.right&&(e.width=Math.min(d.right-h.x,c+e.width-d.left),e.width=Math.max(e.width,0))),h.x+e.width>d.right&&f&1&&(h.x=Math.max(d.right-e.width,d.left)),h.yd.bottom&&(e.height=Math.min(d.bottom-h.y,c+e.height-d.top),e.height=Math.max(e.height, 0))),h.y+e.height>d.bottom&&f&4&&(h.y=Math.max(d.bottom-e.height,d.top)));d=new g.ag(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.tg(this.element,new g.ae(d.left,d.top));g.Hs(this.I);this.I.R(document,"contextmenu",this.gN);this.I.R(this.J,"fullscreentoggled",this.TK);this.I.R(this.J,"pageTransition",this.UK)}}; g.k.gN=function(a){if(!g.Oo(a)){var b=Ko(a);g.He(this.element,b)||this.ib();this.J.T().disableNativeContextMenu&&g.No(a)}}; g.k.TK=function(){this.ib();Cua(this)}; g.k.UK=function(){this.ib()};g.u(qV,g.V);qV.prototype.onClick=function(){return Pe(this,function b(){var c=this,d,e,f,h;return xa(b,function(l){if(1==l.u)return d=c.api.T(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),ra(l,Eua(c,h),2);l.B&&Dua(c);g.LT(c.api,c.element);l.u=0})})}; qV.prototype.oa=function(){var a=this.api.T(),b=this.api.getVideoData();this.ya("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.ya("title-attr","Copy link");var c=g.aF(this.api).getPlayerSize().width;this.visible= !!b.videoId&&240<=c&&b.yq&&!(b.jc&&a.pfpChazalUi);g.K(this.element,"ytp-copylink-button-visible",this.visible);g.pN(this,this.visible);sV(this.tooltip);g.wN(this.api,this.element,this.visible&&this.N)}; qV.prototype.Bb=function(a){g.V.prototype.Bb.call(this,a);g.wN(this.api,this.element,this.visible&&a)}; qV.prototype.ba=function(){g.V.prototype.ba.call(this);g.en(this.element,"ytp-copylink-button-visible")};g.u(tV,g.V);tV.prototype.show=function(){g.V.prototype.show.call(this);this.u.Lb()}; tV.prototype.hide=function(){this.B.stop();g.en(this.element,"ytp-chapter-seek");g.V.prototype.hide.call(this)}; tV.prototype.hq=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&g.LT(this.J,e);this.u.jg();this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*g.aF(this.J).getPlayerSize().height;e=g.aF(this.J).getPlayerSize();e=e.width/3-3*e.height;var h=this.ha("ytp-doubletap-static-circle");h.style.width=f+"px";h.style.height=f+"px";1===a?(h.style.left="",h.style.right=e+"px"):-1===a&&(h.style.right="",h.style.left=e+"px");var l=2.5*f;f=l/2;h=this.ha("ytp-doubletap-ripple");h.style.width= l+"px";h.style.height=l+"px";1===a?(a=g.aF(this.J).getPlayerSize().width-b+Math.abs(e),h.style.left="",h.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,h.style.right="",h.style.left=a-f+"px");h.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.ha("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");Fua(this,d)};var zDa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(zDa).reduce(function(a,b){a[zDa[b]]=b;return a},{}); var ADa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ADa).reduce(function(a,b){a[ADa[b]]=b;return a},{}); var BDa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(BDa).reduce(function(a,b){a[BDa[b]]=b;return a},{});var h2,CDa;h2=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];CDa=[{option:0,text:vV(0)},{option:.25,text:vV(.25)},{option:.5,text:vV(.5)},{option:.75,text:vV(.75)},{option:1,text:vV(1)}]; g.yV=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:h2},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:vV(.5)},{option:-1,text:vV(.75)},{option:0,text:vV(1)},{option:1,text:vV(1.5)},{option:2,text:vV(2)}, {option:3,text:vV(3)},{option:4,text:vV(4)}]},{option:"background",text:"Background color",options:h2},{option:"backgroundOpacity",text:"Background opacity",options:CDa},{option:"windowColor",text:"Window color",options:h2},{option:"windowOpacity",text:"Window opacity",options:CDa},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",text:"Font opacity", options:[{option:.25,text:vV(.25)},{option:.5,text:vV(.5)},{option:.75,text:vV(.75)},{option:1,text:vV(1)}]}];g.u(g.xV,g.cR);g.k=g.xV.prototype; g.k.LB=function(a){var b=!1,c=g.Qo(a),d=Ko(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.Oo(a)?(e=!1,h=!0):l.De&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"), d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);NU(this.Ob,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);NU(this.Ob,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.xe()&&(this.api.seekTo(0), h=f=!0);break;case 35:this.api.xe()&&(this.api.seekTo(Infinity),h=f=!0)}}b&&this.Dy(!0);(b||h)&&this.Fc.Vj();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.No(a);l.C&&(a={keyCode:g.Qo(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Oo(a),fullscreen:this.api.isFullscreen()},this.api.xa("onKeyPress",a))}; g.k.MB=function(a){this.handleGlobalKeyUp(g.Qo(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}; g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.zT(g.rT(this.api));c&&(c=c.il)&&c.ab&&(c.JB(a),b=!0);9===a&&(this.Dy(!0),b=!0);return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){e=!1;c=this.api.T();if(c.De)return e;var h=g.zT(g.rT(this.api));if(h&&(h=h.il)&&h.ab)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:e=h.IB(a)}c.I||e||(e=f||String.fromCharCode(a).toLowerCase(),this.B+=e,0==="awesome".indexOf(this.B)?(e=!0,7===this.B.length&&gn(this.api.getRootNode(),"ytp-color-party")):(this.B=e,e=0==="awesome".indexOf(this.B)));if(!e){f=(f=this.api.getVideoData())?f.Da:[];switch(a){case 80:b&&!c.Y&&(MU(this.Ob, toa(),"Previous"),this.api.previousVideo(),e=!0);break;case 78:b&&!c.Y&&(MU(this.Ob,GN(),"Next"),this.api.nextVideo(),e=!0);break;case 74:this.api.xe()&&(c.aa("web_player_seek_chapters_by_shortcut")&&this.u?uV(this.u,-1,10):MU(this.Ob,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate()),e=!0);break;case 76:this.api.xe()&&(c.aa("web_player_seek_chapters_by_shortcut")&&this.u?uV(this.u,1,10):MU(this.Ob,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate()),e=!0);break;case 37:this.api.xe()&&(d&&c.aa("web_player_seek_chapters_by_shortcut")?(b=Iua(f,1E3*this.api.getCurrentTime()),-1!==b&&null!=this.u&&(Gua(this.u,-1,f[b].title),this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.aa("web_player_seek_chapters_by_shortcut")&&this.u?uV(this.u,-1,5):MU(this.Ob,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate()),e=!0));break;case 39:this.api.xe()&&(d&&c.aa("web_player_seek_chapters_by_shortcut")?(b=Hua(f,1E3*this.api.getCurrentTime()),-1!==b&&null!=this.u&&(Gua(this.u,1,f[b].title),this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.aa("web_player_seek_chapters_by_shortcut")&&null!=this.u?uV(this.u,1,5):MU(this.Ob,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate()),e=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),NU(this.Ob,this.api.getVolume(),!1)):(this.api.mute(),NU(this.Ob,0,!0));e=!0;break;case 32:case 75:c.Y||(b=!g.IL(g.JI(this.api)),this.Ob.rm(b),b?this.api.playVideo():this.api.pauseVideo(),e=!0);break;case 190:b?c.fc&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b+.25,!0),mua(this.Ob,!1),e=!0):this.api.xe()&&(Kua(this,1),e=!0);break;case 188:b?c.fc&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b- .25,!0),mua(this.Ob,!0),e=!0):this.api.xe()&&(Kua(this,-1),e=!0);break;case 70:Zta(this.api)&&(this.api.toggleFullscreen()["catch"](function(){}),e=!0); break;case 27:this.D()&&(e=!0)}if("3"!==c.controlsType)switch(a){case 67:g.bU(g.rT(this.api))&&(c=this.api.getOption("captions","track"),this.api.toggleSubtitles(),MU(this.Ob,loa(),!c||c&&!c.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),e=!0);break;case 79:zV(this,"textOpacity");break;case 87:zV(this,"windowOpacity");break;case 187:case 61:zV(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:zV(this,"fontSizeIncrement",!0,!0)}var l;48<=a&&57>=a?l=a-48:96<=a&&105>= a&&(l=a-96);null!=l&&this.api.xe()&&(a=this.api.getProgressState(),this.api.seekTo(l/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),e=!0);e&&this.Fc.Vj()}return e}; g.k.Dy=function(a){g.K(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.K(this.contextMenu.element,"ytp-probably-keyboard-focus",a)}; g.k.ba=function(){this.C.jg();g.cR.prototype.ba.call(this)};g.u(AV,g.V);AV.prototype.oa=function(){var a=g.OC(this.J.T())&&g.xT(this.J)&&g.U(g.JI(this.J),128),b=this.J.getPlayerSize();this.visible=this.u.ye()&&!a&&240<=b.width&&!(this.J.getVideoData().jc&&this.J.T().pfpChazalUi);g.K(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&sV(this.tooltip);g.wN(this.J,this.element,this.visible&&this.N)}; AV.prototype.Bb=function(a){g.V.prototype.Bb.call(this,a);g.wN(this.J,this.element,this.visible&&a)}; AV.prototype.ba=function(){g.V.prototype.ba.call(this);g.en(this.element,"ytp-overflow-button-visible")};g.u(BV,g.CU);g.k=BV.prototype;g.k.ZK=function(a){a=Ko(a);g.He(this.element,a)&&(g.He(this.B,a)||g.He(this.closeButton,a)||DU(this))}; g.k.ib=function(){g.CU.prototype.ib.call(this);this.tooltip.bi(this.element)}; g.k.show=function(){this.ab&&this.J.V("OVERFLOW_PANEL_OPENED");g.CU.prototype.show.call(this);Lua(this,!0)}; g.k.hide=function(){g.CU.prototype.hide.call(this);Lua(this,!1)}; g.k.YK=function(a){!a&&this.rf()&&DU(this)}; g.k.focus=function(){for(var a=g.q(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.ab){b.focus();break}};g.u(DV,g.V);DV.prototype.Ec=function(a){this.element.setAttribute("aria-checked",String(a))}; DV.prototype.onClick=function(a){g.oU(a,this.api)&&this.api.playVideoAt(this.index)};g.u(EV,g.CU);g.k=EV.prototype;g.k.show=function(){g.CU.prototype.show.call(this);this.C.R(this.api,"videodatachange",this.Dx);this.C.R(this.api,"onPlaylistUpdate",this.Dx);this.Dx()}; g.k.hide=function(){g.CU.prototype.hide.call(this);g.Hs(this.C);this.updatePlaylist(null)}; g.k.Dx=function(){this.updatePlaylist(this.api.getPlaylist())}; g.k.ou=function(){var a=this.playlist,b=a.Ps;if(b===this.D)this.selected.Ec(!1),this.selected=this.B[a.index];else{for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.getLength();this.B=[];for(d=0;dg.aF(this.api).getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.IJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.IJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.ab||(this.show(),sV(this.tooltip)),this.visible=!0):this.ab&& (this.hide(),sV(this.tooltip))}; FV.prototype.Bb=function(a){g.V.prototype.Bb.call(this,a);g.wN(this.api,this.element,this.visible&&a)}; FV.prototype.u=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.oa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.oa,this);this.oa()};g.u(GV,g.V);g.k=GV.prototype; g.k.Ex=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;var c,d,e,f,h,l,m,n,p=this.tooltipRenderer.text,r=!1;(null===(c=null===p||void 0===p?void 0:p.runs)||void 0===c?0:c.length)&&p.runs[0].text&&(this.update({title:p.runs[0].text.toString()}),r=!0);g.Cg(this.title,r);p=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===p||void 0===p?void 0:p.runs)||void 0===d?0:d.length)&&p.runs[0].text){r=p.runs[0].text.toString();d=r.indexOf("$TARGET_ICON");if(-1=this.B&&!a;g.K(this.element,"ytp-share-button-visible",this.visible);g.pN(this,this.visible);sV(this.tooltip);g.wN(this.api,this.element,this.visible&&this.N)}; g.JV.prototype.Bb=function(a){g.V.prototype.Bb.call(this,a);g.wN(this.api,this.element,this.visible&&a)}; g.JV.prototype.ba=function(){g.V.prototype.ba.call(this);g.en(this.element,"ytp-share-button-visible")};g.u(g.KV,g.CU);g.k=g.KV.prototype;g.k.iL=function(a){a=Ko(a);g.He(this.F,a)||g.He(this.closeButton,a)||DU(this)}; g.k.ib=function(){g.CU.prototype.ib.call(this);this.tooltip.bi(this.element)}; g.k.show=function(){var a=this.ab;g.CU.prototype.show.call(this);this.oa();a||this.api.xa("onSharePanelOpened")}; g.k.oa=function(){var a=this;g.H(this.element,"ytp-share-panel-loading");g.en(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId(),d=c&&this.D.checked,e=this.api.T();g.Q(e.experiments,"web_player_innertube_share_panel")&&b.getSharePanelCommand?NS(bF(this.api.app),b.getSharePanelCommand,{includeListId:d}).then(function(f){Pua(a,f)}):(g.K(this.element,"ytp-share-panel-has-playlist",!!c),b={action_get_share_info:1, video_id:b.videoId},e.ne&&(b.authuser=e.ne),e.pageId&&(b.pageid=e.pageId),g.OC(e)&&g.TU(b,"emb_share"),d&&(b.list=c),g.Vp(e.P+"share_ajax",{method:"GET",onError:function(){Rua(a)}, onSuccess:function(f,h){h?Pua(a,h):Rua(a)}, Wh:b,withCredentials:!0}));c=this.api.getVideoUrl(!0,!0,!1,!1);this.ya("link",c);this.ya("linkText",c);this.ya("shareLinkWithUrl",g.IJ("Share link $URL",{URL:c}));rU(this.C)}; g.k.hL=function(a){!a&&this.rf()&&DU(this)}; g.k.focus=function(){this.C.focus()}; g.k.ba=function(){g.CU.prototype.ba.call(this);Qua(this)};g.u(NV,g.V);g.k=NV.prototype;g.k.ba=function(){BW(this);g.V.prototype.ba.call(this)}; g.k.HM=function(a){a.target!==this.dismissButton.element&&(Tua(this,!1),this.J.xa("innertubeCommand",this.onClickCommand))}; g.k.IM=function(){this.dismissed=!0;Tua(this,!0);this.Vh()}; g.k.hO=function(a){this.ca=a;this.Vh()}; g.k.YN=function(a){var b=this.J.getVideoData();b&&b.videoId===this.videoId&&this.Y&&(this.K=a,a||(a=3+this.J.getCurrentTime(),Uua(this,a)))}; g.k.Oa=function(a,b){var c,d=!!b.videoId&&this.videoId!==b.videoId;d&&(this.videoId=b.videoId,this.dismissed=!1,this.u=!0,this.K=this.Y=this.F=this.I=!1,BW(this));if(d||!b.videoId)this.C=this.B=!1;d=b.shoppingOverlayRenderer;this.ca=this.enabled=!1;if(d){this.enabled=!0;var e,f;this.B||(this.B=!!d.trackingParams)&&g.tN(this.J,this.badge.element,d.trackingParams||null);this.C||(this.C=!(null===(e=d.dismissButton)||void 0===e||!e.trackingParams))&&g.tN(this.J,this.dismissButton.element,(null===(f=d.dismissButton)|| void 0===f?void 0:f.trackingParams)||null);this.text=g.T(d.text);if(e=null===(c=d.dismissButton)||void 0===c?void 0:c.a11yLabel)this.va=g.T(e);this.onClickCommand=d.onClickCommand;this.timing=d.timing;mH(b)?this.K=this.Y=!0:Uua(this)}d=this.text||"";g.Ie(g.me("ytp-shopping-overlay-badge-title",this.element),d);this.badge.element.setAttribute("aria-label",d);this.dismissButton.element.setAttribute("aria-label",this.va?this.va:"");MV(this);this.Vh()}; g.k.LQ=function(a){this.Pa=a;this.Vh()}; g.k.Vh=function(){AW(this)?this.P.show():this.P.hide();Sua(this)}; g.k.Ve=function(a){(this.F=a)?(LV(this),MV(this,!1)):(BW(this),this.ka.start());this.Vh()}; g.k.nQ=function(){if(this.expanded){this.X.show();var a=this.D.element.scrollWidth}else a=this.D.element.scrollWidth,this.X.hide();this.Aa=34+a;g.K(this.badge.element,"ytp-shopping-overlay-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Aa)+"px";this.W.start()}; g.k.dI=function(){this.badge.element.style.width=(this.expanded?this.Aa:34)+"px";this.fa.start()}; g.k.jL=function(){this.enabled=!1;this.Vh()}; g.k.MM=function(a){this.la=1===a;this.Vh()};g.u(CW,g.CU);CW.prototype.show=function(){g.CU.prototype.show.call(this);this.B.start()}; CW.prototype.hide=function(){g.CU.prototype.hide.call(this);this.B.stop()};g.u(DW,g.V);DW.prototype.onClick=function(){var a=g.Z(this.J.app);a&&a.u&&a.u.vx()}; DW.prototype.oa=function(){var a;var b=(null===(a=g.Z(this.J.app))||void 0===a?void 0:a.me)||!1;g.pN(this,b);this.ya("icon",this.J.dm()?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,U:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:{G:"svg", U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};new dq("yt.autonav");g.u(EW,g.V);g.k=EW.prototype; g.k.Kp=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.JT(this.J)&&400<=g.aF(this.J).getPlayerSize().width)this.u||(this.u=!0,g.pN(this,this.u),this.B.push(this.R(this.J,"videodatachange",this.Kp)),this.B.push(this.R(this.J,"videoplayerreset",this.Kp)),this.B.push(this.R(this.J,"onPlaylistUpdate",this.Kp)),this.B.push(this.R(this.J,"autonavchange",this.eD)),a=this.J.getVideoData(),this.eD(a.autonavState),g.wN(this.J,this.element,this.u));else{this.u=!1;g.pN(this,this.u);a=g.q(this.B); for(var b=a.next();!b.done;b=a.next())this.Hb(b.value)}}; g.k.eD=function(a){this.isChecked=1!==a||!g.xs(g.vs.getInstance(),140);Vua(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;var a=this.J,b=this.isChecked?2:1;JBa(a.app,b);b&&b1(a.app,b);Vua(this);g.LT(this.J,this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.setValue=function(a){this.isChecked=a;this.ha("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.u(g.GW,g.V);g.GW.prototype.ba=function(){this.u=null;g.V.prototype.ba.call(this)};g.u(HW,g.V);HW.prototype.X=function(a){var b=g.Bg(this.I).width,c=g.Bg(this.W).width,d=this.K.Ud()?3:1;a=a.width-b-c-40*d-52;0d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.Rx()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Bo(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.CU(this.J,{G:"div",ia:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:"0"},S:[b[0],{G:"a",U:{href:"https://web.archive.org/web/20201214145215/https://support.google.com/youtube/answer/6276924", target:this.J.T().F},Z:b[2]},b[4]]},100,!0);this.message.hide();g.D(this,this.message);this.message.subscribe("show",function(c){a.C.To(a.message,c)}); g.iP(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.u)();this.u=null}}; g.k.oa=function(){g.pN(this,Zta(this.J))}; g.k.hD=function(a){if(a){var b={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"g",L:"ytp-fullscreen-button-corner-2",S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g", L:"ytp-fullscreen-button-corner-1",S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.sU(this.J,"Exit full screen","f");document.activeElement===this.element&&this.J.getRootNode().focus()}else b={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"g",L:"ytp-fullscreen-button-corner-0",S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",S:[{G:"path", tb:!0,L:"ytp-svg-fill",U:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",S:[{G:"path",tb:!0,L:"ytp-svg-fill",U:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.sU(this.J,"Full screen","f");this.ya("icon",b);this.ya("title",this.message?null:a);sV(this.C.Nb())}; g.k.ba=function(){this.message||((0,this.u)(),this.u=null);g.V.prototype.ba.call(this)};g.u(NW,g.V);NW.prototype.onClick=function(){this.J.xa("onCollapseMiniplayer");g.LT(this.J,this.element)}; NW.prototype.oa=function(){this.visible=!this.J.isFullscreen();g.pN(this,this.visible);g.wN(this.J,this.element,this.visible&&this.N)}; NW.prototype.Bb=function(a){g.V.prototype.Bb.call(this,a);g.wN(this.J,this.element,this.visible&&a)};g.u(OW,g.V);OW.prototype.Oa=function(a){this.oa("newdata"===a)}; OW.prototype.oa=function(a){var b=this.J.getVideoData(),c=b.nl,d=g.JI(this.J);d=(g.IL(d)||g.U(d,4))&&0a&&this.delay.start()}; var EDa=new g.pn(0,0,.4,0,.2,1,1,1),bva=/[0-9.-]+|[^0-9.-]+/g;g.u(SW,g.V);g.k=SW.prototype;g.k.iD=function(a){this.visible=300<=a.width;g.pN(this,this.visible);g.wN(this.J,this.element,this.visible&&this.N)}; g.k.PN=function(){this.J.T().W?this.J.isMuted()?this.J.unMute():this.J.mute():DU(this.message,this.element,!0);g.LT(this.J,this.element)}; g.k.XK=function(a){this.setVolume(a.volume,a.muted)}; g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.T(),f=0===d?1:50this.clipEnd)&&this.ku()}; g.k.eL=function(a){if(!g.Oo(a)){var b=!1;switch(g.Qo(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.No(a)}}; g.k.jD=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.k.RI=function(){this.jD("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.lc=c&&a.allowLiveDvr;Ava(this,this.api.xe());b&&(c?(c=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=c,iX(this),eX(this,this.K,this.ka)):this.ku(),g.XX(this.tooltip));if(a){c=a.watchNextResponse;if(c=!a.isLivePlayback&&c){c=this.api.getVideoData().multiMarkersPlayerBarRenderer;var d=this.api.getVideoData().Ev;c=null!=c||null!=d&&0a.position&&(n=1);!m&&h/2>this.C-a.position&&(n=2);Tva(this.tooltip, c,d,b,!!f,l,e,n)}else Tva(this.tooltip,c,d,b,!!f,l);g.K(this.api.getRootNode(),"ytp-progress-bar-hover",!g.U(g.JI(this.api),64));tva(this)}; g.k.jO=function(){g.XX(this.tooltip);g.en(this.api.getRootNode(),"ytp-progress-bar-hover")}; g.k.iO=function(a,b){this.D&&(this.D.dispose(),this.D=null);this.Ee=b;1e||1e&&a.D.start()}); this.D.start()}if(g.U(g.JI(this.api),32)||3===this.api.getPresentingPlayerType())1.1*(this.B?60:40),f=bX(this));g.K(this.element,"ytp-pull-ui",e);d&&g.H(this.element,"ytp-pulling");d=0;f.B&&0>=f.position&&1===this.Da.length?d=-1:f.F&&f.position>=f.width&&1===this.Da.length&&(d=1);if(this.Xa!==d&&1===this.Da.length&&(this.Xa=d,this.D&&(this.D.dispose(),this.D=null),d)){var h=(0,g.N)();this.D=new g.Um(function(){var l=c.C*(c.fa-1); c.W=g.Wd(c.W+c.Xa*((0,g.N)()-h)*.3,0,l);fX(c);c.api.seekTo(hX(c,bX(c)),!1);0(a.deltaX||-a.deltaY)?-this.F:this.F;this.qm(b);g.No(a)}; g.k.lL=function(a){a=(a-g.vg(this.B).x)/this.K*this.range+this.minimumValue;this.qm(a)}; g.k.qm=function(a,b){b=void 0===b?"":b;var c=g.Wd(a,this.minimumValue,this.maximumValue);""===b&&(b=c.toString());this.ya("valuenow",c);this.ya("valuetext",b);this.W.style.left=(c-this.minimumValue)/this.range*(this.K-this.P)+"px";this.u=c}; g.k.focus=function(){this.Y.focus()};g.u(zX,xX);zX.prototype.X=function(){this.J.setPlaybackRate(this.u,!0)}; zX.prototype.qm=function(a){xX.prototype.qm.call(this,a,AX(this,a).toString());this.C&&(yX(this),this.ca())}; zX.prototype.fa=function(){var a=this.J.getPlaybackRate();AX(this,this.u)!==a&&(this.qm(a),yX(this))};g.u(BX,g.qN);BX.prototype.focus=function(){this.u.focus()};g.u(Eva,cV);g.u(CX,g.pX);g.k=CX.prototype;g.k.Ch=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.k.oa=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);Hva(this)}; g.k.Dn=function(a){g.pX.prototype.Dn.call(this,a);a?(this.K=this.R(this.J,"onPlaybackRateChange",this.nL),Hva(this),Fva(this,this.J.getPlaybackRate())):(this.Hb(this.K),this.K=null)}; g.k.nL=function(a){var b=this.J.getPlaybackRate();this.I.includes(b)||Gva(this,b);Fva(this,a)}; g.k.Re=function(a){g.pX.prototype.Re.call(this,a);a===this.u?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Wa.Vf()};g.u(EX,g.pX);g.k=EX.prototype;g.k.Ec=function(a){g.pX.prototype.Ec.call(this,a)}; g.k.getKey=function(a){return a.option.toString()}; g.k.getOption=function(a){return this.settings[a]}; g.k.Ch=function(a){return this.getOption(a).text||""}; g.k.Re=function(a){g.pX.prototype.Re.call(this,a);this.V("settingChange",this.setting,this.settings[a].option)};g.u(FX,g.dV);FX.prototype.je=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Jk[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ec(e),c.D.element.setAttribute("aria-checked",String(!d)),c.u.element.setAttribute("aria-checked",String(d)))}}}; FX.prototype.Sf=function(a,b){this.V("settingChange",a,b)};g.u(GX,g.pX);GX.prototype.getKey=function(a){return a.languageCode}; GX.prototype.Ch=function(a){return this.languages[a].languageName||""}; GX.prototype.Re=function(a){this.V("select",a);g.oV(this.Wa)};g.u(HX,g.pX);g.k=HX.prototype;g.k.getKey=function(a){return g.Sb(a)?"__off__":a.displayName}; g.k.Ch=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName}; g.k.Re=function(a){"__translate__"===a?this.u.open():"__contribute__"===a?(this.J.pauseVideo(),this.J.isFullscreen()&&this.J.toggleFullscreen(),a=g.SU(this.J.T(),this.J.getVideoData()),g.TK(a)):(this.J.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.pX.prototype.Re.call(this,a),this.Wa.Vf())}; g.k.oa=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData();b=b&&b.wr;var c={};if(a||b){if(a){var d=this.J.getOption("captions","track");c=this.J.getOption("captions","tracklist",{includeAsr:!0});var e=this.J.getOption("captions","translationLanguages");this.tracks=g.Db(c,this.getKey,this);var f=g.Lc(c,this.getKey);if(e.length&&!g.Sb(d)){var h=d.translationLanguage;if(h&&h.languageName){var l=h.languageName;h=e.findIndex(function(m){return m.languageName=== l}); saa(e,h)}Jva(this.u,e);f.push("__translate__")}e=this.getKey(d)}else this.tracks={},f=[],e="__off__";f.unshift("__off__");this.tracks.__off__={};b&&f.unshift("__contribute__");this.tracks[e]||(this.tracks[e]=d,f.push(e));g.qX(this,f);this.Ec(e);d&&d.translationLanguage?this.u.Ec(this.u.getKey(d.translationLanguage)):Cva(this.u);a&&this.D.je(this.J.getSubtitlesUserSettings());this.K.zc(c&&c.length?" ("+c.length+")":"");this.V("size-change");this.enable(!0)}else this.enable(!1)}; g.k.rL=function(a){var b=this.J.getOption("captions","track");b=g.Vb(b);b.translationLanguage=this.u.languages[a];this.J.setOption("captions","track",b)}; g.k.Sf=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}Kva(this,!0);this.I.start();this.D.je(this.J.getSubtitlesUserSettings())}; g.k.PO=function(a){a||this.I.jg()}; g.k.ba=function(){this.I.jg();g.pX.prototype.ba.call(this)};g.u(IX,g.lV);g.k=IX.prototype;g.k.initialize=function(){if(!this.Pd){this.Pd=!0;this.mx=new uX(this.J,this);g.D(this,this.mx);var a=new wX(this.J,this);g.D(this,a);a=new HX(this.J,this);g.D(this,a);a=new oX(this.J,this);g.D(this,a);this.J.T().fc&&(a=new CX(this.J,this),g.D(this,a));this.J.T().Ab&&!g.Q(this.J.T().experiments,"web_player_move_autonav_toggle")&&(a=new sX(this.J,this),g.D(this,a));a=new rX(this.J,this);g.D(this,a);nX(this.settingsButton,this.hd.items.length)}}; g.k.Qb=function(a){this.initialize();this.hd.Qb(a);nX(this.settingsButton,this.hd.items.length)}; g.k.ie=function(a){this.ab&&1>=this.hd.items.length&&this.hide();this.hd.ie(a);nX(this.settingsButton,this.hd.items.length)}; g.k.wc=function(a){this.initialize();0=this.K&&(!this.B||!g.U(g.JI(this.api),64));g.pN(this,b);g.K(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.JO(g.Q(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.C!==c&&(this.ya("currenttime",c),this.C=c);b=g.JO(g.Q(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:this.api.getDuration(b, !1));this.D!==b&&(this.ya("duration",b),this.D=b)}this.B&&(a=a.isAtLiveHead,this.I!==a||this.F!==this.isPremiere)&&(this.I=a,this.F=this.isPremiere,this.kc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.zc(this.isPremiere?"Premiere":"Live"),a?this.u&&(this.u(),this.u=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.u=g.RU(this.tooltip,this.liveBadge.element)))}; g.k.Oa=function(a,b,c){this.updateVideoData(g.Q(this.api.T().experiments,"enable_topsoil_wta_for_halftime")&&2===c?this.api.getVideoData(1):b);this.kc()}; g.k.updateVideoData=function(a){this.B=a.isLivePlayback&&!a.Ai;this.isPremiere=a.isPremiere;g.K(this.element,"ytp-live",this.B)}; g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())}; g.k.ba=function(){this.u&&this.u();g.V.prototype.ba.call(this)};g.u(OX,g.V);g.k=OX.prototype;g.k.Nj=function(){var a=this.B.Ud();this.F!==a&&(this.F=a,NX(this,this.api.getVolume(),this.api.isMuted()))}; g.k.nD=function(a){g.pN(this,350<=a.width)}; g.k.wL=function(a){if(!g.Oo(a)){var b=g.Qo(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.Wd(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.No(a))}}; g.k.uL=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.Wd(b/10,-10,10));g.No(a)}; g.k.TO=function(){MX(this,this.u,!0,this.D,this.B.uh());this.X=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.vL=function(a){var b=this.F?78:52,c=this.F?18:12;a-=g.vg(this.W).x;this.api.setVolume(100*g.Wd((a-c/2)/(b-c),0,1))}; g.k.SO=function(){MX(this,this.u,!1,this.D,this.B.uh());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))}; g.k.xL=function(a){NX(this,a.volume,a.muted)}; g.k.zA=function(){MX(this,this.u,this.C,this.D,this.B.uh())}; g.k.ba=function(){g.V.prototype.ba.call(this);g.en(this.K,"ytp-volume-slider-active")};g.u(g.PX,g.V);g.PX.prototype.Oa=function(){var a=this.api.getVideoData(1).jc,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.pN(this,this.visible);g.wN(this.api,this.element,this.visible&&this.N);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.ya("url",a))}; g.PX.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.KO(a),!1,!0,!0);g.OC(this.api.T())&&(b=g.Ed(b,g.TU({},"emb_logo")));g.pU(b,this.api,a);g.LT(this.api,this.element)}; g.PX.prototype.Bb=function(a){g.V.prototype.Bb.call(this,a);g.wN(this.api,this.element,this.visible&&a)};g.u(RX,g.cR);g.k=RX.prototype;g.k.Yd=function(){this.Yc.kc();this.Sh.kc()}; g.k.Hh=function(){this.Fx();this.Fc.B?this.Yd():g.XX(this.Yc.tooltip)}; g.k.Up=function(){this.Yd();this.Od.start()}; g.k.Fx=function(){var a=!this.J.T().u&&300>g.Bva(this.Yc)&&g.JI(this.J).Jb()&&!!window.requestAnimationFrame,b=!a;this.Fc.B||(a=b=!1);b?this.K||(this.K=this.R(this.J,"progresssync",this.Yd)):this.K&&(this.Hb(this.K),this.K=null);a?this.Od.isActive()||this.Od.start():this.Od.stop()}; g.k.Ta=function(){var a=this.B.Ud(),b=g.aF(this.J).getPlayerSize(),c=SX(this),d=Math.max(b.width-2*c,100);if(this.la!==b.width||this.ka!==a){this.la=b.width;this.ka=a;var e=Ova(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";this.Yc.setPosition(c,e,a);this.B.Nb().ca=e}c=this.u;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-TX(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.It=e;c.jo();this.Fx();!this.J.T().aa("html5_player_bottom_linear_gradient")&&g.Q(this.J.T().experiments, "html5_player_dynamic_bottom_gradient")&&g.FW(this.fa,b.height)}; g.k.Oa=function(){var a=this.J.getVideoData();this.W.style.background=a.jc?a.oj:"";g.pN(this.X,a.Jy)}; g.k.Na=function(){return this.C.element};var i2={},UX=(i2.CHANNEL_NAME="ytp-title-channel-name",i2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",i2.LINK="ytp-title-link",i2.SESSIONLINK="yt-uix-sessionlink",i2.SUBTEXT="ytp-title-subtext",i2.TEXT="ytp-title-text",i2.TITLE="ytp-title",i2);g.u(VX,g.V);VX.prototype.onClick=function(a){g.LT(this.api,this.element);var b=this.api.getVideoUrl(!g.KO(a),!1,!0);g.OC(this.api.T())&&(b=g.Ed(b,g.TU({},"emb_title")));g.pU(b,this.api,a)}; VX.prototype.oa=function(){var a=this.api.getVideoData(),b=this.api.T();this.ya("title",a.title);Pva(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.gk&&c.sf?(this.ya("channelLink",c.gk),this.ya("channelName",c.author)):Pva(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.me;g.K(this.link,UX.FULLERSCREEN_LINK,c);b.N||!a.videoId||c||a.jc&&b.pfpChazalUi?this.u&&(this.ya("url",null),this.Hb(this.u),this.u=null):(this.ya("url", this.api.getVideoUrl(!0)),this.u||(this.u=this.R(this.link,"click",this.onClick)))};g.u(g.WX,g.V);g.k=g.WX.prototype;g.k.aE=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;Rva(this,c)}}; g.k.vJ=function(){lG(this.u,this.C,160*this.scale)}; g.k.Ii=function(){switch(this.type){case 2:var a=this.B;a.removeEventListener("mouseout",this.W);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.W);a.addEventListener("focus",this.D);Uva(this);break;case 3:Uva(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.aE,this),this.u=null),this.api.removeEventListener("videoready",this.X),this.Y.stop()}this.type=null;this.K&&this.I.hide()}; g.k.bi=function(a){for(var b=0;b(b.height-d.height)/2?m=l.y-f.height-12:m=l.y+d.height+12);a.style.top=m+(e||0)+"px";a.style.left=c+"px"}; g.k.Hh=function(a){a&&(this.tooltip.bi(this.vg.element),this.uf&&this.tooltip.bi(this.uf.Na()));g.GU.prototype.Hh.call(this,a)}; g.k.mi=function(a,b){var c=g.aF(this.api).getPlayerSize();c=new g.ag(0,0,c.width,c.height);if(a||this.Fc.B&&!this.al()){if(this.api.T().Gm||b){var d=this.Ud()?this.Iv:this.Hv;c.top+=d;c.height-=d}this.uf&&(c.height-=TX(this.uf))}return c}; g.k.Nj=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.T().externalFullscreen||(b.parentElement.insertBefore(this.Sr.element,b),b.parentElement.insertBefore(this.Rr.element,b.nextSibling))):M(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Sr.detach(),this.Rr.detach());this.Ta();this.Xj()}; g.k.Ud=function(){var a=this.api.T();a=a.aa("embeds_enable_mobile_custom_controls")&&a.u;return this.api.isFullscreen()&&!a||!1}; g.k.showControls=function(a){this.Cr=!a;this.yg()}; g.k.Ta=function(){var a=this.Ud();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.K(this.contextMenu.element,"ytp-big-mode",a);this.yg();if(this.ye()&&this.Tf)this.ag&&CV(this.Tf,this.ag),this.shareButton&&CV(this.Tf,this.shareButton),this.kj&&CV(this.Tf,this.kj);else{if(this.Tf){a=this.Tf;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.ag&&!g.He(this.If.element,this.ag.element)&&this.ag.ga(this.If.element);this.shareButton&&!g.He(this.If.element, this.shareButton.element)&&this.shareButton.ga(this.If.element);this.kj&&!g.He(this.If.element,this.kj.element)&&this.kj.ga(this.If.element)}this.Xj();g.GU.prototype.Ta.call(this)}; g.k.pw=function(){if($va(this)&&!g.xT(this.api))return!1;var a=this.api.getVideoData();return!g.OC(this.api.T())||2===this.api.getPresentingPlayerType()||!this.Fg||((a=this.Fg||a.Fg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.GU.prototype.pw.call(this):!1}; g.k.Xj=function(){g.GU.prototype.Xj.call(this);g.wN(this.api,this.title.element,!!this.vi);this.Nn&&this.Nn.Bb(!!this.vi);this.channelAvatar.Bb(!!this.vi);this.overflowButton&&this.overflowButton.Bb(this.ye()&&!!this.vi);this.shareButton&&this.shareButton.Bb(!this.ye()&&!!this.vi);this.ag&&this.ag.Bb(!this.ye()&&!!this.vi);this.kj&&this.kj.Bb(!this.ye()&&!!this.vi);if(!this.vi){this.tooltip.bi(this.vg.element);for(var a=0;ae?dY(this,"next_player_future"):(this.I=d,this.C=AA(a,c,d,!0),this.D=AA(a,e,f,!1),a=this.B.getVideoData().clientPlaybackNonce, this.u.Ma("gaplessPrep","cpn."+a),iY(this.u,this.C),gY(this.u,fwa(b,c,d,!this.u.getVideoData().isAd())),hY(this,2),lwa(this))):this.da():this.da()}else dY(this,"no-elem")}else this.da()}; g.k.In=function(a){var b=kwa(this).FF,c=a===b;b=c?this.C.u:this.C.B;c=c?this.D.u:this.D.B;if(b.isActive&&!c.isActive){var d=this.I;My(a.Je(),d-.01)&&(hY(this,4),b.isActive=!1,b.Nq=b.Nq||b.isActive,this.B.Ma("sbh","1"),c.isActive=!0,c.Nq=c.Nq||c.isActive);a=this.D.B;this.D.u.isActive&&a.isActive&&hY(this,5)}}; g.k.gE=function(){4<=this.status.status&&6>this.status.status&&dY(this,"player-reload-after-handoff")}; g.k.ba=function(){jwa(this);this.u.unsubscribe("newelementrequired",this.gE,this);if(this.C){var a=this.C.B;this.C.u.Ic.unsubscribe("updateend",this.In,this);a.Ic.unsubscribe("updateend",this.In,this)}g.C.prototype.ba.call(this)}; g.k.ac=function(a){g.VI(a,128)&&dY(this,"player-error-event")}; g.k.da=function(){};g.u(lY,g.C);lY.prototype.clearQueue=function(){this.da();this.D&&this.D.reject("Queue cleared");mY(this)}; lY.prototype.ba=function(){mY(this);g.C.prototype.ba.call(this)}; lY.prototype.da=function(){};g.u(pY,g.O);g.k=pY.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:qwa()?3:b?2:c?1:d?5:e?7:f?8:0}; g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Ve())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ve())}; g.k.setImmersivePreview=function(a){this.C!==a&&(this.C=a,this.Ve())}; g.k.isFullscreen=function(){return 0!==this.fullscreen}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return qwa()}; g.k.Ve=function(){this.V("visibilitychange");var a=this.getVisibilityState(this.B,this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.C);a!==this.F&&this.V("visibilitystatechange");this.F=a}; g.k.ba=function(){twa(this.D);g.O.prototype.ba.call(this)};g.u(rY,g.C);g.k=rY.prototype; g.k.LK=function(a){var b,c,d,e;if(a=this.D.get(a))if(this.api.V("serverstitchedvideochange",a.Ac),a.cpn&&(null===(c=null===(b=a.playerResponse)||void 0===b?void 0:b.videoDetails)||void 0===c?0:c.videoId)){for(var f,h,l=0;lthis.C;)(c=this.data.shift())&&LY(this,c,!0);JY(this)}; KY.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(LY(this,c,b),g.pb(this.data,function(d){return d.key===a}),JY(this))}; KY.prototype.ba=function(){var a=this;g.C.prototype.ba.call(this);this.data.forEach(function(b){LY(a,b,!0)}); this.data=[]};g.u(MY,g.C);MY.prototype.start=function(){this.B.start()}; MY.prototype.stop=function(){this.B.stop()}; MY.prototype.clear=function(){for(var a=g.q(Object.keys(this.u)),b=a.next();!b.done;b=a.next())this.u[b.value].clear()}; MY.prototype.D=function(){for(var a=g.q(Object.keys(this.C)),b=a.next();!b.done;b=a.next())b=b.value,this.u[b].update(this.C[b]());this.B.start()}; NY.prototype.update=function(a){this.buffer.add(a)}; NY.prototype.clear=function(){this.buffer.clear()};g.u(RY,g.C);RY.prototype.ba=function(){g.C.prototype.ba.call(this);this.u=null;this.B&&this.B.disconnect()};SY.prototype.ma=function(){return this.F}; SY.prototype.dispose=function(){this.F=!0;g.UY(this);this.B=null};var Vwa=$a(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}}),VY=!1;var j2;j2={};g.WY=(j2.STOP_EVENT_PROPAGATION="html5-stop-propagation",j2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",j2.IV_DRAWER_OPEN="ytp-iv-drawer-open",j2.MAIN_VIDEO="html5-main-video",j2.VIDEO_CONTAINER="html5-video-container",j2.HOUSE_BRAND="house-brand",j2);g.u(XY,g.V);g.k=XY.prototype;g.k.Lp=function(a){for(var b=[],c=0;c=c||cthis.C&&(this.C=c,g.Sb(this.u)||(this.u={},this.D.stop(),this.B.stop())),this.u[b]=a,this.B.Lb())}}; gZ.prototype.F=function(){for(var a=g.q(Object.keys(this.u)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.V;for(var d=this.C,e=this.u[c].match(rd),f=[],h=g.q(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+hd(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}c=!1}c=!c}c?c=0:(c=a.u,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.u.push({time:b+c,info:a});this.B.Lb(c)};sZ.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null}; sZ.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; sZ.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; sZ.prototype.findIndex=function(a){return g.fb(this.keys,function(b){return g.Ab(a,b)})};g.u(uZ,g.O);g.k=uZ.prototype;g.k.YJ=function(a){tZ(this,"onecpt");a.initData&&Uxa(this,new Uint8Array(a.initData),a.initDataType)}; g.k.SN=function(a){tZ(this,"onndky");Uxa(this,a.initData,a.contentType)}; g.k.cA=function(a){this.D.push(a);wZ(this)}; g.k.createSession=function(a){this.C.get(a.initData);this.Y=!0;var b=new jZ(this.videoData,this.B,a,this.drmSessionId);this.C.set(a.initData,b);b.subscribe("ctmp",this.PD,this);b.subscribe("hdentitled",this.bE,this);b.subscribe("keystatuseschange",this.WC,this);b.subscribe("licenseerror",this.XC,this);b.subscribe("newlicense",this.iE,this);b.subscribe("newsession",this.kE,this);b.subscribe("sessionready",this.xE,this);b.subscribe("fairplay_next_need_key_info",this.YD,this);txa(b,this.F)}; g.k.iE=function(a){this.ma()||(this.da(),tZ(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.V("heartbeatparams",a)))}; g.k.kE=function(){this.ma()||(this.da(),tZ(this,"newlcssn"),this.D.shift(),this.Y=!1,wZ(this))}; g.k.xE=function(){if(VB(this.u)&&(this.da(),tZ(this,"onsnrdy"),this.Ca--,0===this.Ca)){var a=this.X;a.element.msSetMediaKeys(a.C)}}; g.k.WC=function(a){this.ma()||(!this.la&&this.videoData.aa("html5_log_drm_metrics_on_key_statuses")&&(Zxa(this),this.la=!0),this.da(),tZ(this,"onksch"),Yxa(this,Fxa(a,this.ea)),this.V("keystatuseschange",a))}; g.k.bE=function(){this.ma()||this.fa||!XB(this.u)||(this.da(),tZ(this,"onhdet"),this.va=EAa,this.V("hdproberequired"),this.V("qualitychange"))}; g.k.PD=function(a,b){this.ma()||this.V("ctmp",a,b)}; g.k.YD=function(a,b){this.ma()||this.V("fairplay_next_need_key_info",a,b)}; g.k.XC=function(a,b,c,d){this.ma()||(this.videoData.aa("html5_log_drm_metrics_on_error")&&Zxa(this),this.V("licenseerror",a,b,c,d))}; g.k.ba=function(){this.u.keySystemAccess&&this.element.setMediaKeys(null);this.element=null;this.D=[];for(var a=g.q(this.C.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.PD,this),b.unsubscribe("hdentitled",this.bE,this),b.unsubscribe("keystatuseschange",this.WC,this),b.unsubscribe("licenseerror",this.XC,this),b.unsubscribe("newlicense",this.iE,this),b.unsubscribe("newsession",this.kE,this),b.unsubscribe("sessionready",this.xE,this),b.unsubscribe("fairplay_next_need_key_info", this.YD,this),b.dispose();a=this.C;a.keys=[];a.values=[];g.O.prototype.ba.call(this)}; g.k.qb=function(){for(var a={systemInfo:this.u.qb(),sessions:[]},b=g.q(this.C.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.qb());return a}; g.k.Ke=function(){return 0>=this.C.values.length?"no session":this.C.values[0].Ke()+(this.I?"/KR":"")}; g.k.da=function(){};g.u(yZ,g.O); yZ.prototype.handleError=function(a,b){var c=this;cya(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!BZ(this,a.errorCode,a.details))&&!fya(this,a,b))if(dya(a)&&this.videoData.Ja&&this.videoData.Ja.B)zZ(this,a.errorCode,a.details),CZ(this,"highrepfallback","1",{Ly:!0}),!this.videoData.aa("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&CZ(this,"afmts",btoa(this.videoData.adaptiveFormats),{Ly:!0}), Lma(this.videoData),this.V("highrepfallback");else if(a.u){var d=this.u?this.u.K.F:null;if(dya(a)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.Ra.I&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.V("playererror",a.errorCode,e,g.oA(a.details),f)}else d=/^pp/.test(this.videoData.clientPlaybackNonce),zZ(this,a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(d="https://web.archive.org/web/20201214145215/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+ (0,g.N)(),(new XD(d,"manifest",function(h){c.N=!0;CZ(c,"pathprobe",h)},function(h){zZ(c,h.errorCode,h.details)})).send())}; yZ.prototype.ba=function(){this.B=this.u=null;g.O.prototype.ba.call(this)}; yZ.prototype.da=function(){};g.u(EZ,g.O);EZ.prototype.setPlaybackRate=function(a){this.playbackRate=a}; EZ.prototype.aa=function(a){return g.Q(this.u.experiments,a)};g.u(HZ,g.C);HZ.prototype.ac=function(a){yya(this);this.playerState=a.state;0<=this.B&&g.VI(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; HZ.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(FDa)?this.networkErrorCount++:this.nonNetworkErrorCount++)}; HZ.prototype.send=function(){if(!(this.C||0>this.u)){yya(this);var a=g.nY(this.provider)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&& g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=nH(this.provider.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=zya(this.provider);var e=0>this.B?a:this.B-this.u;a=this.provider.u.Ha+36E5<(0,g.N)();b={started:0<=this.B,stateAtSend:b, joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.kH(this.provider.videoData),isGapless:this.provider.videoData.Ci};!a&&this.provider.aa("html5_health_to_gel")&&g.rq("html5PlayerHealthEvent",b);this.provider.aa("html5_health_to_qoe")&&(b.muted=a,this.I(g.oA(b)));this.C=!0; this.dispose()}}; HZ.prototype.ba=function(){this.C||this.send();g.C.prototype.ba.call(this)}; var FDa=/\bnet\b/;g.u(LZ,g.C);g.k=LZ.prototype;g.k.TI=function(){var a=g.nY(this.provider);MZ(this,a)}; g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.ma()&&(a=0<=a?a:g.nY(this.provider),-1<["PL","B","S"].indexOf(this.Hc)&&(!g.Sb(this.u)||a>=this.C+30)&&(g.KZ(this,a,"vps",[this.Hc]),this.C=a),!g.Sb(this.u)))if(7E3===this.sequenceNumber&&g.Ur(Error("Sent over 7000 pings")),7E3<=this.sequenceNumber)this.u={};else{NZ(this,a);var b=a,c=this.provider.I(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Aa,h=e&&!this.Qa;if(d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.provider.P(),this.u.qoealert=["1"],this.fa=!0)}"B"!==a||"PL"!==this.Hc&&"PB"!==this.Hc||(this.X=!0);this.C=c}"B"=== a&&"PL"===this.Hc||this.provider.videoData.Rj?NZ(this,c):MZ(this,c);"PL"===a&&this.jb.Lb();g.KZ(this,c,"vps",[a]);this.Hc=a;this.C=this.ka=c;this.P=!0}a=b.getData();g.U(b,128)&&a&&Eya(this,c,a.errorCode,a.kF);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.Jb()&&!this.D&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.D=!0);OZ(this)}; g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";var b=GDa[LL(a)];g.cD(this.provider.u)&&"B"===b&&3===this.provider.getVisibilityState()&&(b="SU");"B"===b&&g.U(a,4)&&(b="PB");return b}; g.k.ba=function(){g.C.prototype.ba.call(this);window.clearInterval(this.va)}; g.k.Ma=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Ab.indexOf(a);e||this.Ab.push(a);if(!c||!e){/[^a-zA-Z0-9;.!_-]/.test(b)&&(b=b.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!c&&!/^t[.]/.test(b)){var f=1E3*g.nY(this.provider);b="t."+f.toFixed()+";"+b}HDa(a,b);d.push(a+":"+b);this.u.ctmp=d;OZ(this);return f}}; var HDa=g.Ka,m2={},GDa=(m2[5]="N",m2[-1]="N",m2[3]="B",m2[0]="EN",m2[2]="PA",m2[1]="PL",m2);Hya.prototype.update=function(){if(this.K){var a=this.provider.B()||0,b=g.nY(this.provider);if(a!==this.u||Mya(this,a,b)){var c;if(!(c=ab-this.lastUpdateTime+2||Mya(this,a,b))){var d=this.provider.Me();c=d.volume;var e=c!==this.P;d=d.muted;d!==this.N?(this.N=d,c=!0):(!e||0<=this.D||(this.P=c,this.D=b),c=b-this.D,0<=this.D&&2=this.provider.videoData.hh){if(this.C&&this.provider.videoData.hh){var a=YZ(this,"delayplay");a.Xa=!0;a.send();this.X=!0}Qya(this)}}; XZ.prototype.ac=function(a){this.ma()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.VI(a,2)&&this.C&&b_(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&ZZ(this,!1)):this.currentPlayerState="paused",this.D&&g.U(a.state,128)&&(a_(this,"error-100"),g.mo(this.D)))}; XZ.prototype.ba=function(){g.C.prototype.ba.call(this);g.mo(this.B);this.B=NaN;Kya(this.u);g.mo(this.D)}; XZ.prototype.qb=function(){return VZ(YZ(this,"playback"))};g.u(c_,g.C);g.k=c_.prototype;g.k.ac=function(a){var b;if(g.VI(a,1024)||g.VI(a,2048)||g.VI(a,512)||g.VI(a,4)){if(this.B){var c=this.B;0<=c.B||(c.u=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.D||(c.B=-1))}this.provider.videoData.enableServerStitchedDai&&this.C?null===(b=this.D.get(this.C))||void 0===b?void 0:b.ac(a):this.u&&this.u.ac(a);this.qoe&&this.qoe.ac(a);this.B&&this.B.ac(a)}; g.k.Yd=function(){var a;this.provider.videoData.enableServerStitchedDai&&this.C?null===(a=this.D.get(this.C))||void 0===a?void 0:a.Yd():this.u&&this.u.Yd()}; g.k.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)}; g.k.Ma=function(a,b,c){this.qoe&&this.qoe.Ma(a,b,c)}; g.k.qb=function(){var a;if(this.provider.videoData.enableServerStitchedDai&&this.C)null===(a=this.D.get(this.C))||void 0===a?void 0:a.qb();else if(this.u)return this.u.qb();return{}};aza.prototype.isEmpty=function(){return this.endTime===this.startTime};bza.prototype.aa=function(a){return g.Q(this.u.experiments,a)}; var cza={other:1,none:2,wifi:3,cellular:7};eza.prototype.Dc=function(){return this.Ja.Dc()};g.u(h_,g.O);h_.prototype.da=function(){};g.u(n_,g.C);n_.prototype.ac=function(a){this.playerState=a.state}; n_.prototype.ca=function(){var a=this;if(this.D&&!this.playerState.isError()){var b=this.D,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.u,e=yna(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();o_(this,this.ka,e&&!f,d,"qoe.slowseek",function(){},"timeout"); e=e&&isFinite(this.u)&&0c-this.K;f=this.videoData.isAd()&&d&&!e&&f;o_(this,this.va,f,!f,"ad.rebuftimeout",function(){return a.V("skipslowad")},"skip_slow_ad"); this.K=c;this.F.start()}}; n_.prototype.qb=function(a){a=a.qb();this.u&&(a.stt=this.u.toFixed(3));this.B&&Object.assign(a,this.B.qb());this.D&&Object.assign(a,this.D.qb());return a}; l_.prototype.reset=function(){this.u=this.B=this.C=this.startTimestamp=0;this.D=!1}; l_.prototype.qb=function(){var a={},b=(0,g.N)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.u&&(a.wssd=(b-this.u).toFixed());return a};g.u(q_,g.O);g.k=q_.prototype;g.k.Nh=function(a){r_(this);this.videoData=a;this.P=this.B=null;this.F=this.Qa=this.timestampOffset=0;this.va=!0;this.N.dispose();a=this.N=new n_(this.W,this.videoData,(0,g.z)(this.V,this),this.visibility,this.Xa);var b=this.u;(a.D=b)&&a.F.Lb();this.N.B=this.D}; g.k.ac=function(a){this.N.ac(a);this.aa("html5_exponential_memory_for_sticky")&&(a.state.Jb()?this.fa.Lb():this.fa.stop());var b;if(b=this.u)b=8===a.Lj.state&&JL(a.state)&&g.KL(a.state)&&this.policy.D;if(b){a=this.u.getCurrentTime();b=this.u.zf();var c=this.aa("manifestless_post_live_ufph")||this.aa("manifestless_post_live")?Ly(b,Math.max(a-3.5,0)):Ly(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Va-c)||(this.V("ctmp","seekover","b."+Ky(b, "_")+";cmt."+a),this.Va=c,this.seekTo(c,{qp:!0})))}}; g.k.getCurrentTime=function(){return!isNaN(this.C)&&isFinite(this.C)?this.C:this.u&&vza(this)?this.u.getCurrentTime()+this.timestampOffset:this.F||0}; g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return k_(this.B,a)}; g.k.seekTo=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hG?!1:c.hG,e=void 0===c.iG?0:c.iG,f=void 0===c.qp?!1:c.qp;c=void 0===c.Xy?0:c.Xy;var h=a,l=!isFinite(h)||(this.B?k_(this.B,h):h>=this.Gc())||!g.tH(this.videoData);l||this.V("ctmp","seeknotallowed",h+";"+this.Gc());if(!l)return this.I&&(this.I=null,sza(this)),im(this.getCurrentTime());this.da();if(a===this.C&&this.Y)return this.da(),this.K;this.Y&&r_(this);this.K||(this.K=new dx);a&&!isFinite(a)&&t_(this,!1);h=a;(v_(this)&&!(this.u&&0this.u.getCurrentTime()&&this.B)return;break;case "resize":RAa(this);this.videoData.La&&"auto"===this.videoData.La.Ka().quality&&this.V("internalvideoformatchange", this.videoData,!1);break;case "pause":if(this.cg&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.bC){e0(this,"safari_autoplay_disabled");return}}if(this.u&&this.u.Oe()===b){this.V("videoelementevent",a);b=this.playerState;if(!g.U(b,128)){c=this.Ab;e=this.u;var f=this.C.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.zi()||1Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"=== a.type||"timeupdate"===a.type&&!g.U(b,4)&&!e_(c,h);if("pause"===a.type&&e.zi()||l&&h)0a-this.fc)){var b=this.u.dm();this.fc=a;b!==this.visibility.B&&(a=this.visibility,a.B!==b&&(a.B=b,a.Ve()),Z_(this));this.V("airplayactivechange")}}; g.k.kc=function(a){var b=this;a=void 0===a?!1:a;if(this.u&&this.videoData){qza(this.D,this.Jb());var c=this.getCurrentTime();this.B&&(g.U(this.playerState,4)&&g.tH(this.videoData)||bia(this.B,c));5Math.abs(l-f)?(b.Ma("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.aa("html5_set_ended_in_pfx_live_cfl")||(b.u.Il()?(b.da(),b.seekTo(0)):oY(b))):(g.KL(b.playerState)||V_(b,"progress_fix"),b.sb(EL(b.playerState,1)))):(l&&!m&&!n&&0m-1&&b.Ma("misspg","t:"+f.toFixed(2)+";d:"+ m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.U(b.playerState,4)&&g.KL(b.playerState)&&5UI(b,8)||g.VI(b,1024))&&this.Aa.stop();!g.VI(b,8)||this.videoData.Gg||g.U(b.state,1024)||this.Aa.start();g.U(b.state,8)&&0>UI(b,16)&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&uH(this.videoData)&&(a=this.getCurrentTime(),this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,c0(this)),this.kc(!0));g.VI(b,2)&&this.yy(!0);g.VI(b,128)&&this.Mh();this.videoData.na&&this.videoData.isLivePlayback&&!this.cj&& (0>UI(b,8)?(a=this.videoData.na,a.D&&a.D.stop()):g.VI(b,8)&&this.videoData.na.resume());this.D.ac(b);this.F.ac(b);if(c&&!this.ma())try{for(var e=g.q(this.Zc),f=e.next();!f.done;f=e.next()){var h=f.value;this.W.ac(h);this.V("statechange",h)}}finally{this.Zc.length=0}}}; g.k.CL=function(a,b,c,d){a:{var e=this.I;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.K&&1e.F)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.aa("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.I&&(e.I++,e.V("removedrmplaybackmanager"),1Math.random()&&g.Ur(Error("Botguard not available after 2 attempts")),!a&&5>this.jb)){this.Sd.Lb();this.jb++;return}if("c1b"in c.u){var d=$ya(this.F);d&&Vsa(c).then(function(e){e&&!b.Ha&&d?(KB("att_f","player_att"),d(e),b.Ha=!0):KB("att_e","player_att")}, function(){KB("att_e","player_att")})}else(a=Tsa(c))?(KB("att_f","player_att"),Zya(this.F,a),this.Ha=!0):KB("att_e","player_att")}}; g.k.Gc=function(a){return this.D.Gc(void 0===a?!1:a)}; g.k.Cc=function(){return this.D.Cc()}; g.k.tc=function(){return this.D?this.D.tc():0}; g.k.getStreamTimeOffset=function(){return this.D?this.D.getStreamTimeOffset():0}; g.k.setPlaybackRate=function(a){var b=this.videoData.Ja&&this.videoData.Ja.videoInfos&&32=c,b.dis=this.D.jp("display"));(a=a?(0,g.QZ)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.B.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)}; g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.T().experiments.experimentIds.join(", ")},b=vT(this).getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.k.getPresentingPlayerType=function(){return 1===this.fa?1:w0(this)?3:g.Z(this).getPlayerType()}; g.k.getAppState=function(){return this.fa}; g.k.RJ=function(a){switch(a.type){case "loadedmetadata":HB("fvb",this.N.timerName)||this.N.tick("fvb");KB("fvb","video_to_ad");this.lc.start();break;case "loadstart":HB("gv",this.N.timerName)||this.N.tick("gv");KB("gv","video_to_ad");break;case "progress":case "timeupdate":!HB("l2s",this.N.timerName)&&2<=Oy(a.target.zf())&&this.N.tick("l2s");break;case "playing":g.uD&&this.lc.start();if(g.cD(this.u))a=!1;else{var b=g.zT(this.F);a="none"===this.D.jp("display")||0===ee(this.D.zn());var c=ZY(this.template), d=this.I.getVideoData(),e=qD(this.u)||g.XC(this.u);d=AG(d);b=!c||b||e||d||this.u.Zc;a=a&&!b}a&&(this.I.Ma("hidden","1",!0),this.getVideoData().Qi||(this.aa("html5_new_elem_on_hidden")?(this.getVideoData().Qi=1,this.hE(null),this.I.playVideo()):IBa(this,"hidden",!0)))}}; g.k.wN=function(a,b){this.B.xa("onLoadProgress",b)}; g.k.UO=function(){this.B.V("playbackstalledatstart")}; g.k.Xp=function(a,b){var c=E0(this,a);b=S0(this,c.getCurrentTime(),c);this.B.xa("onVideoProgress",b)}; g.k.hN=function(){this.B.xa("onDompaused")}; g.k.nO=function(){this.B.V("progresssync")}; g.k.AM=function(a){if(1===this.getPresentingPlayerType()){g.VI(a,1)&&!g.U(a.state,64)&&F0(this).isLivePlayback&&this.C.isAtLiveHead()&&1Math.random()&&g.rq("autoplayTriggered",{intentional:this.hf});this.Lf=!1;this.B.xa("onPlaybackStartExternal");g.Q(this.u.experiments,"mweb_client_log_screen_associated")||a();DB("player_att",["att_f","att_e"]);if(this.aa("web_player_inline_botguard")){var c=this.getVideoData().botguardData;c&&(this.aa("web_player_botguard_inline_skip_config_killswitch")&& (Wn("BG_I",c.interpreterScript),Wn("BG_IU",c.interpreterUrl),Wn("BG_P",c.program)),g.nD(this.u)?Wo(function(){N0(b)}):N0(this))}}; g.k.NJ=function(){this.B.V("internalAbandon");this.aa("html5_ad_module_cleanup_killswitch")||T0(this)}; g.k.UD=function(a){a=a.u;if(!isNaN(a)&&0window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.D.Uo())}; g.k.vN=function(a){3!==this.getPresentingPlayerType()&&this.B.V("liveviewshift",a)}; g.k.playVideo=function(a){this.da();if(a=g.Z(this,a))2===this.fa?M0(this):(null!=this.ca&&this.ca.ab&&this.ca.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())}; g.k.pauseVideo=function(a){(a=g.Z(this,a))&&a.pauseVideo()}; g.k.stopVideo=function(){this.da();var a=this.C.getVideoData(),b=new g.rG(this.u,{video_id:a.pz||a.videoId,oauth_token:a.oauthToken});b.Rh=g.Vb(a.Rh);this.cancelPlayback(6);Y0(this,b,1);null!=this.ca&&this.ca.stop()}; g.k.cancelPlayback=function(a,b){this.da();lq(this.Pa);this.Pa=0;var c=g.Z(this,b);if(c)if(1===this.fa||2===this.fa)this.da();else{c===this.I&&(this.da(),fU(this.F,a));var d=c.getVideoData();if(this.K&&FH(d)&&d.videoId)if(this.aa("hoffle_api")){var e=this.K;d=d.videoId;if(2===Nw(d)){var f=aT(e,d);f&&f!==e.player&&FH(f.getVideoData())&&(eT(f),fH(f.getVideoData(),!1),Qw(d,3),bT(e))}}else fT(this.K,d.videoId);1===b&&(g.Q(this.u.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),T0(this)); c.Mh();FT(this,"cuerangesremoved",jE(c.W)||[]);c.W.reset();this.Va&&c.isGapless()&&(fY(c,!0),gY(c,this.D))}else this.da()}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.Z(this,b))&&this.u.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.updatePlaylist=function(){lD(this.u)?J0(this):g.Q(this.u.experiments,"embeds_wexit_list_ajax_migration")&&g.UC(this.u)&&K0(this);this.B.xa("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.dg=a;this.Sd=b;this.B.V("sizestylechange",a,b);this.template.resize()}; g.k.isWidescreen=function(){return this.Sd}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.wT(this.F).getAdState();if(!this.Qc()){var a=gU(this.F);if(a)return a.getAdState()}return-1}; g.k.BO=function(a){var b=this.template.getVideoContentRect();bg(this.Kf,b)||(this.Kf=b,this.I&&g0(this.I),this.C&&this.C!==this.I&&g0(this.C),1===this.visibility.fullscreen&&this.Ab&&HBa(this,!0));this.De&&g.de(this.De,a)||(this.B.V("appresize",a),this.De=a)}; g.k.xe=function(){return this.B.xe()}; g.k.RO=function(){2===this.getPresentingPlayerType()&&this.ka.isManifestless()&&!this.aa("web_player_manifestless_ad_signature_expiration_killswitch")?Qwa(this.ka):IBa(this,"signature",void 0,!0)}; g.k.hE=function(){z0(this);y0(this)}; g.k.AO=function(a){iY(a,this.D.At())}; g.k.OJ=function(a){this.K&&this.K.u(a)}; g.k.XM=function(){this.B.xa("CONNECTION_ISSUE")}; g.k.MJ=function(a){this.B.V("heartbeatparams",a)}; g.k.setBlackout=function(a){this.u.Zc=a;this.I&&(g.d_(this.I.F),this.u.W&&LBa(this))}; g.k.setAccountLinkState=function(a){var b=g.Z(this);b&&(b.getVideoData().Km=a,g.d_(b.F))}; g.k.updateAccountLinkingConfig=function(a){var b=g.Z(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.B.V("videodatachange","dataupdated",c,b.getPlayerType())}}; g.k.VN=function(){var a=g.Z(this);if(a){var b=!ET(this.B);(a.Ee=b)||a.Aa.stop();if(a.videoData.na)if(b)a.videoData.na.resume();else{var c=a.videoData.na;c.D&&c.D.stop()}g.Q(a.C.experiments,"html5_suspend_loader")&&a.B&&(b?a.B.resume():m0(a,!0));g.Q(a.C.experiments,"html5_fludd_suspend")&&(g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.sb(FL(a.playerState,512)):a.sb(EL(a.playerState,512)));a=a.F;a.qoe&&(a=a.qoe,g.KZ(a,g.nY(a.provider),"stream",[b?"A":"I"]))}}; g.k.xN=function(){this.B.xa("onLoadedMetadata")}; g.k.jN=function(){this.B.xa("onDrmOutputRestricted")}; g.k.ba=function(){this.F.dispose();this.ka.dispose();this.P&&this.P.dispose();this.C.dispose();z0(this);g.Yf(g.Lb(this.Fe),this.playlist);lq(this.Pa);this.Pa=0;g.C.prototype.ba.call(this)}; g.k.da=function(){}; g.k.aa=function(a){return g.Q(this.u.experiments,a)}; g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)}; g.k.setScreenLayer=function(a){this.cg=a}; g.k.cancelPendingLocalMediaById=function(a){return this.K&&this.aa("hoffle_api")?fT(this.K,a):Promise.reject()}; g.k.fetchLocalMedia=function(){if(this.K&&this.aa("hoffle_api")){var a=this.K,b=a.api.Zb();b&&(b=b.getVideoData(),FH(b)||(Qw(b.videoId,2),a.api.Mh(),fH(b,!0),hta(a,b),a.api.playVideo()))}}; g.k.fetchLocalMediaById=function(a){return this.K&&this.aa("hoffle_api")?eta(this.K,a):Promise.reject()}; g.k.getLocalPlayerResponse=function(a){return this.K&&this.aa("hoffle_api")?fta(this.K,a):Promise.reject()}; g.k.getLocalMediaInfoById=function(a){return this.K&&this.aa("hoffle_api")?this.K.getLocalMediaInfoById(a):Promise.reject()}; g.k.getAllLocalMediaInfo=function(){return this.K&&this.aa("hoffle_api")?this.K.getAllLocalMediaInfo():Promise.reject()}; g.k.getStatsForNerds=function(){var a=this.B,b=g.Z(this),c=a.getVideoData(),d=a.app.D,e=d.Na(),f=b.u?b.u.getVideoPlaybackQuality():{},h=b.ka,l=8*QY(h,"bandwidth")/1024,m=QY(h,"networkactivity")/1024,n=QY(h,"bufferhealth");if(b.K){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.K.u.Ke()+"/"+nC(n0(b));p+="/"+b.K.Ke()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),w=Ky(d.zf(),",",3),x="";c.fC()&&(c.enableServerStitchedDai&&(x+="SS"),x+="DAI, ");c.fetchType&& (x+="vd:"+("gvi"===c.fetchType?"g":"o")+", ");x+="s:"+r+" t:"+t+" b:"+w+" ";d.Fp()&&(x+="S");d.Nk()&&(x+="P");d.zi()&&(x+="E");d=b.F;d=d.qoe?d.qoe.ea:void 0;d&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.hv;d&&d>r.start&&dE;E++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(E)),4==E%5){for(var G="", J=0;6>J;J++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+G,y>>=5;B+=G}w=B.substr(0,4)+" "+B.substr(4,4)+" "+B.substr(8,4)}else w="";l={video_id_and_cpn:c.videoId+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:d,bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+" KB",shader_info:r,shader_info_style:r?"":"display:none",playback_categories:""};m=e.clientWidth+ "x"+e.clientHeight+(1a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming"; e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=PY(h,"bandwidth");l.network_activity_samples=PY(h,"networkactivity");l.live_latency_samples=PY(h,"livelatency");l.buffer_health_samples=PY(h,"bufferhealth");FG(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20201209_1_RC0",l.release_style=""):l.release_style= "display:none";return l}; g.k.getVideoUrl=function(a,b,c,d,e){return this.W&&this.W.postId?(a=this.u.getVideoUrl(a),a=Ld(a,"v"),a.replace("/watch","/clip/"+this.W.postId)):this.u.getVideoUrl(a,b,c,d,e)}; var p2={};g.Fa("yt.player.Application.create",v0.create,void 0);g.Fa("yt.player.Application.createAlternate",v0.create,void 0);var q2=Qr(),r2={Zl:[{BJ:/Unable to load player module/,weight:5}]};r2.Zl&&(q2.Zl=q2.Zl.concat(r2.Zl));r2.Qm&&(q2.Qm=q2.Qm.concat(r2.Qm));var LDa=g.Ja("ytcsi.tick");LDa&&LDa("pe");g.eU.ad=tS;var PBa=/#(.)(.)(.)/,OBa=/^#(?:[0-9a-f]{3}){1,2}$/i;var RBa=g.re&&QBa();g.Ta(g.g1,g.C);var MDa=[];g.k=g.g1.prototype;g.k.wa=function(a,b,c,d){Array.isArray(b)||(b&&(MDa[0]=b.toString()),b=MDa);for(var e=0;e